{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.6.5"
    },
    "colab": {
      "name": "Classification Test 4.ipynb",
      "version": "0.3.2",
      "provenance": [],
      "collapsed_sections": [
        "b-Fa9hPz8TTJ",
        "72RBDx7F8TTK"
      ]
    }
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "B4fZM-H98TOr",
        "colab_type": "text"
      },
      "source": [
        "# Classification Test 3\n",
        "\n",
        "\n",
        "- S&P500의 505개 주식 중, 2010년 부터 데이터를 얻을 수 있었던 453개 주식의 수익률을 가지고 개별 기업의 주가 수익률의 방향을 예측해보는 실험을 해보았다.\n",
        "- 연구의 목적: Classification model 비교\n",
        "- PCA-SVM, Random Forest, Gaussian Naive Bayesian, Decision Tree, Adaboost, Gradient Boost, M\n",
        "XGboost, KNN, MPC"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "OwXw4X0o8TOt",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "import numpy as np\n",
        "import pandas as pd\n",
        "!pip install -q yfinance\n",
        "import yfinance as yf\n",
        "import matplotlib.pyplot as plt\n",
        "import seaborn as sns"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "SBWeYAfc8TO0",
        "colab_type": "text"
      },
      "source": [
        "## Data"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "UCi5ONr8-YVE",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 54
        },
        "outputId": "c89f029a-9b8a-4820-a188-ea7640e60f35"
      },
      "source": [
        "table = pd.read_html('https://en.wikipedia.org/wiki/List_of_S%26P_500_companies')[0]\n",
        "tickers = table['Symbol'].tolist()\n",
        "print (tickers)"
      ],
      "execution_count": 2,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "['MMM', 'ABT', 'ABBV', 'ABMD', 'ACN', 'ATVI', 'ADBE', 'AMD', 'AAP', 'AES', 'AMG', 'AFL', 'A', 'APD', 'AKAM', 'ALK', 'ALB', 'ARE', 'ALXN', 'ALGN', 'ALLE', 'AGN', 'ADS', 'LNT', 'ALL', 'GOOGL', 'GOOG', 'MO', 'AMZN', 'AMCR', 'AEE', 'AAL', 'AEP', 'AXP', 'AIG', 'AMT', 'AWK', 'AMP', 'ABC', 'AME', 'AMGN', 'APH', 'APC', 'ADI', 'ANSS', 'ANTM', 'AON', 'AOS', 'APA', 'AIV', 'AAPL', 'AMAT', 'APTV', 'ADM', 'ARNC', 'ANET', 'AJG', 'AIZ', 'ATO', 'T', 'ADSK', 'ADP', 'AZO', 'AVB', 'AVY', 'BHGE', 'BLL', 'BAC', 'BK', 'BAX', 'BBT', 'BDX', 'BRK.B', 'BBY', 'BIIB', 'BLK', 'HRB', 'BA', 'BKNG', 'BWA', 'BXP', 'BSX', 'BMY', 'AVGO', 'BR', 'BF.B', 'CHRW', 'COG', 'CDNS', 'CPB', 'COF', 'CPRI', 'CAH', 'KMX', 'CCL', 'CAT', 'CBOE', 'CBRE', 'CBS', 'CE', 'CELG', 'CNC', 'CNP', 'CTL', 'CERN', 'CF', 'SCHW', 'CHTR', 'CVX', 'CMG', 'CB', 'CHD', 'CI', 'XEC', 'CINF', 'CTAS', 'CSCO', 'C', 'CFG', 'CTXS', 'CLX', 'CME', 'CMS', 'KO', 'CTSH', 'CL', 'CMCSA', 'CMA', 'CAG', 'CXO', 'COP', 'ED', 'STZ', 'COO', 'CPRT', 'GLW', 'CTVA', 'COST', 'COTY', 'CCI', 'CSX', 'CMI', 'CVS', 'DHI', 'DHR', 'DRI', 'DVA', 'DE', 'DAL', 'XRAY', 'DVN', 'FANG', 'DLR', 'DFS', 'DISCA', 'DISCK', 'DISH', 'DG', 'DLTR', 'D', 'DOV', 'DOW', 'DTE', 'DUK', 'DRE', 'DD', 'DXC', 'ETFC', 'EMN', 'ETN', 'EBAY', 'ECL', 'EIX', 'EW', 'EA', 'EMR', 'ETR', 'EOG', 'EFX', 'EQIX', 'EQR', 'ESS', 'EL', 'EVRG', 'ES', 'RE', 'EXC', 'EXPE', 'EXPD', 'EXR', 'XOM', 'FFIV', 'FB', 'FAST', 'FRT', 'FDX', 'FIS', 'FITB', 'FE', 'FRC', 'FISV', 'FLT', 'FLIR', 'FLS', 'FMC', 'FL', 'F', 'FTNT', 'FTV', 'FBHS', 'FOXA', 'FOX', 'BEN', 'FCX', 'GPS', 'GRMN', 'IT', 'GD', 'GE', 'GIS', 'GM', 'GPC', 'GILD', 'GPN', 'GS', 'GWW', 'HAL', 'HBI', 'HOG', 'HIG', 'HAS', 'HCA', 'HCP', 'HP', 'HSIC', 'HSY', 'HES', 'HPE', 'HLT', 'HFC', 'HOLX', 'HD', 'HON', 'HRL', 'HST', 'HPQ', 'HUM', 'HBAN', 'HII', 'IDXX', 'INFO', 'ITW', 'ILMN', 'IR', 'INTC', 'ICE', 'IBM', 'INCY', 'IP', 'IPG', 'IFF', 'INTU', 'ISRG', 'IVZ', 'IPGP', 'IQV', 'IRM', 'JKHY', 'JEC', 'JBHT', 'JEF', 'SJM', 'JNJ', 'JCI', 'JPM', 'JNPR', 'KSU', 'K', 'KEY', 'KEYS', 'KMB', 'KIM', 'KMI', 'KLAC', 'KSS', 'KHC', 'KR', 'LB', 'LHX', 'LH', 'LRCX', 'LW', 'LEG', 'LEN', 'LLY', 'LNC', 'LIN', 'LKQ', 'LMT', 'L', 'LOW', 'LYB', 'MTB', 'MAC', 'M', 'MRO', 'MPC', 'MKTX', 'MAR', 'MMC', 'MLM', 'MAS', 'MA', 'MKC', 'MXIM', 'MCD', 'MCK', 'MDT', 'MRK', 'MET', 'MTD', 'MGM', 'MCHP', 'MU', 'MSFT', 'MAA', 'MHK', 'TAP', 'MDLZ', 'MNST', 'MCO', 'MS', 'MOS', 'MSI', 'MSCI', 'MYL', 'NDAQ', 'NOV', 'NKTR', 'NTAP', 'NFLX', 'NWL', 'NEM', 'NWSA', 'NWS', 'NEE', 'NLSN', 'NKE', 'NI', 'NBL', 'JWN', 'NSC', 'NTRS', 'NOC', 'NCLH', 'NRG', 'NUE', 'NVDA', 'ORLY', 'OXY', 'OMC', 'OKE', 'ORCL', 'PCAR', 'PKG', 'PH', 'PAYX', 'PYPL', 'PNR', 'PBCT', 'PEP', 'PKI', 'PRGO', 'PFE', 'PM', 'PSX', 'PNW', 'PXD', 'PNC', 'PPG', 'PPL', 'PFG', 'PG', 'PGR', 'PLD', 'PRU', 'PEG', 'PSA', 'PHM', 'PVH', 'QRVO', 'PWR', 'QCOM', 'DGX', 'RL', 'RJF', 'RTN', 'O', 'REG', 'REGN', 'RF', 'RSG', 'RMD', 'RHI', 'ROK', 'ROL', 'ROP', 'ROST', 'RCL', 'CRM', 'SBAC', 'SLB', 'STX', 'SEE', 'SRE', 'SHW', 'SPG', 'SWKS', 'SLG', 'SNA', 'SO', 'LUV', 'SPGI', 'SWK', 'SBUX', 'STT', 'SYK', 'STI', 'SIVB', 'SYMC', 'SYF', 'SNPS', 'SYY', 'TMUS', 'TROW', 'TTWO', 'TPR', 'TGT', 'TEL', 'FTI', 'TFX', 'TXN', 'TXT', 'TMO', 'TIF', 'TWTR', 'TJX', 'TMK', 'TSS', 'TSCO', 'TDG', 'TRV', 'TRIP', 'TSN', 'UDR', 'ULTA', 'USB', 'UAA', 'UA', 'UNP', 'UAL', 'UNH', 'UPS', 'URI', 'UTX', 'UHS', 'UNM', 'VFC', 'VLO', 'VAR', 'VTR', 'VRSN', 'VRSK', 'VZ', 'VRTX', 'VIAB', 'V', 'VNO', 'VMC', 'WAB', 'WMT', 'WBA', 'DIS', 'WM', 'WAT', 'WEC', 'WCG', 'WFC', 'WELL', 'WDC', 'WU', 'WRK', 'WY', 'WHR', 'WMB', 'WLTW', 'WYNN', 'XEL', 'XRX', 'XLNX', 'XYL', 'YUM', 'ZBH', 'ZION', 'ZTS']\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "8ufA0Dxj8TO2",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 731
        },
        "outputId": "4f52bac4-4d82-4db4-c624-07104305439a"
      },
      "source": [
        "data = yf.download(tickers, start='2009-08-07',end='2019-08-07')"
      ],
      "execution_count": 95,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "[**********************52%                       ]  261 of 505 downloaded"
          ],
          "name": "stdout"
        },
        {
          "output_type": "stream",
          "text": [
            "Exception in thread Thread-1280:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.6/threading.py\", line 916, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.6/threading.py\", line 864, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/multitasking/__init__.py\", line 102, in _run_via_pool\n",
            "    return callee(*args, **kwargs)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 514, in _download_one_threaded\n",
            "    period, interval, prepost, proxy)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 527, in _download_one\n",
            "    proxy=proxy)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 348, in history\n",
            "    raise ValueError(self.ticker, err_msg)\n",
            "ValueError: ('BRK.B', 'No data found, symbol may be delisted')\n",
            "\n"
          ],
          "name": "stderr"
        },
        {
          "output_type": "stream",
          "text": [
            "[**********************72%**********             ]  366 of 505 downloaded"
          ],
          "name": "stdout"
        },
        {
          "output_type": "stream",
          "text": [
            "Exception in thread Thread-1386:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 357, in history\n",
            "    quotes = self._parse_quotes(data[\"chart\"][\"result\"][0])\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 206, in _parse_quotes\n",
            "    timestamps = data[\"timestamp\"]\n",
            "KeyError: 'timestamp'\n",
            "\n",
            "During handling of the above exception, another exception occurred:\n",
            "\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.6/threading.py\", line 916, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.6/threading.py\", line 864, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/multitasking/__init__.py\", line 102, in _run_via_pool\n",
            "    return callee(*args, **kwargs)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 514, in _download_one_threaded\n",
            "    period, interval, prepost, proxy)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 527, in _download_one\n",
            "    proxy=proxy)\n",
            "  File \"/usr/local/lib/python3.6/dist-packages/yfinance/__init__.py\", line 360, in history\n",
            "    raise ValueError(self.ticker, err_msg)\n",
            "ValueError: ('BF.B', 'No data found for this date range, symbol may be delisted')\n",
            "\n"
          ],
          "name": "stderr"
        },
        {
          "output_type": "stream",
          "text": [
            "[*********************100%***********************]  503 of 505 downloaded\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "LvQ16K-P8TO8",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 1000
        },
        "outputId": "4908fb15-ff82-4bda-9475-2748a34e2d29"
      },
      "source": [
        "close = data['Adj Close'][1:]\n",
        "close = close.dropna(axis=0,how='all')\n",
        "close.dropna(axis=1,inplace=True)\n",
        "ret = close.pct_change()\n",
        "ret = ret.dropna()"
      ],
      "execution_count": 96,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/html": [
              "<div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>A</th>\n",
              "      <th>AAL</th>\n",
              "      <th>AAP</th>\n",
              "      <th>AAPL</th>\n",
              "      <th>ABC</th>\n",
              "      <th>ABMD</th>\n",
              "      <th>ABT</th>\n",
              "      <th>ACN</th>\n",
              "      <th>ADBE</th>\n",
              "      <th>ADI</th>\n",
              "      <th>ADM</th>\n",
              "      <th>ADP</th>\n",
              "      <th>ADS</th>\n",
              "      <th>ADSK</th>\n",
              "      <th>AEE</th>\n",
              "      <th>AEP</th>\n",
              "      <th>AES</th>\n",
              "      <th>AFL</th>\n",
              "      <th>AGN</th>\n",
              "      <th>AIG</th>\n",
              "      <th>AIV</th>\n",
              "      <th>AIZ</th>\n",
              "      <th>AJG</th>\n",
              "      <th>AKAM</th>\n",
              "      <th>ALB</th>\n",
              "      <th>ALGN</th>\n",
              "      <th>ALK</th>\n",
              "      <th>ALL</th>\n",
              "      <th>ALXN</th>\n",
              "      <th>AMAT</th>\n",
              "      <th>AMD</th>\n",
              "      <th>AME</th>\n",
              "      <th>AMG</th>\n",
              "      <th>AMGN</th>\n",
              "      <th>AMP</th>\n",
              "      <th>AMT</th>\n",
              "      <th>AMZN</th>\n",
              "      <th>ANSS</th>\n",
              "      <th>ANTM</th>\n",
              "      <th>AON</th>\n",
              "      <th>...</th>\n",
              "      <th>UNM</th>\n",
              "      <th>UNP</th>\n",
              "      <th>UPS</th>\n",
              "      <th>URI</th>\n",
              "      <th>USB</th>\n",
              "      <th>UTX</th>\n",
              "      <th>V</th>\n",
              "      <th>VAR</th>\n",
              "      <th>VFC</th>\n",
              "      <th>VIAB</th>\n",
              "      <th>VLO</th>\n",
              "      <th>VNO</th>\n",
              "      <th>VRSN</th>\n",
              "      <th>VRTX</th>\n",
              "      <th>VTR</th>\n",
              "      <th>VZ</th>\n",
              "      <th>WAB</th>\n",
              "      <th>WAT</th>\n",
              "      <th>WBA</th>\n",
              "      <th>WCG</th>\n",
              "      <th>WDC</th>\n",
              "      <th>WEC</th>\n",
              "      <th>WELL</th>\n",
              "      <th>WFC</th>\n",
              "      <th>WHR</th>\n",
              "      <th>WLTW</th>\n",
              "      <th>WM</th>\n",
              "      <th>WMB</th>\n",
              "      <th>WMT</th>\n",
              "      <th>WU</th>\n",
              "      <th>WY</th>\n",
              "      <th>WYNN</th>\n",
              "      <th>XEC</th>\n",
              "      <th>XEL</th>\n",
              "      <th>XLNX</th>\n",
              "      <th>XOM</th>\n",
              "      <th>XRAY</th>\n",
              "      <th>XRX</th>\n",
              "      <th>YUM</th>\n",
              "      <th>ZION</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Date</th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>2009-08-10</th>\n",
              "      <td>0.004439</td>\n",
              "      <td>-0.045902</td>\n",
              "      <td>-0.019243</td>\n",
              "      <td>-0.004829</td>\n",
              "      <td>-0.001139</td>\n",
              "      <td>0.009589</td>\n",
              "      <td>0.015844</td>\n",
              "      <td>0.007749</td>\n",
              "      <td>-0.012041</td>\n",
              "      <td>0.003855</td>\n",
              "      <td>-0.000448</td>\n",
              "      <td>-0.008065</td>\n",
              "      <td>-0.014031</td>\n",
              "      <td>0.004630</td>\n",
              "      <td>0.003480</td>\n",
              "      <td>-0.005296</td>\n",
              "      <td>0.007201</td>\n",
              "      <td>-0.018377</td>\n",
              "      <td>-0.004302</td>\n",
              "      <td>0.057483</td>\n",
              "      <td>-0.063616</td>\n",
              "      <td>0.003597</td>\n",
              "      <td>-0.005481</td>\n",
              "      <td>-0.001542</td>\n",
              "      <td>-0.011248</td>\n",
              "      <td>0.027641</td>\n",
              "      <td>-0.017143</td>\n",
              "      <td>-0.018843</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.000910</td>\n",
              "      <td>-0.005405</td>\n",
              "      <td>-0.008403</td>\n",
              "      <td>-0.024184</td>\n",
              "      <td>0.012341</td>\n",
              "      <td>-0.016177</td>\n",
              "      <td>0.002848</td>\n",
              "      <td>-0.010314</td>\n",
              "      <td>-0.009592</td>\n",
              "      <td>0.009594</td>\n",
              "      <td>-0.006087</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.023810</td>\n",
              "      <td>-0.034361</td>\n",
              "      <td>-0.007227</td>\n",
              "      <td>-0.014371</td>\n",
              "      <td>-0.010133</td>\n",
              "      <td>0.005238</td>\n",
              "      <td>-0.004249</td>\n",
              "      <td>0.005359</td>\n",
              "      <td>-0.025200</td>\n",
              "      <td>0.008946</td>\n",
              "      <td>0.008648</td>\n",
              "      <td>-0.005502</td>\n",
              "      <td>0.006940</td>\n",
              "      <td>-0.009185</td>\n",
              "      <td>-0.008073</td>\n",
              "      <td>-0.005020</td>\n",
              "      <td>-0.008924</td>\n",
              "      <td>0.009360</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.016170</td>\n",
              "      <td>-0.005412</td>\n",
              "      <td>0.008796</td>\n",
              "      <td>-0.025443</td>\n",
              "      <td>-0.004032</td>\n",
              "      <td>-0.045699</td>\n",
              "      <td>-0.004078</td>\n",
              "      <td>0.005286</td>\n",
              "      <td>0.018349</td>\n",
              "      <td>0.008632</td>\n",
              "      <td>-0.002199</td>\n",
              "      <td>-0.036286</td>\n",
              "      <td>-0.035202</td>\n",
              "      <td>0.048203</td>\n",
              "      <td>0.003715</td>\n",
              "      <td>0.002950</td>\n",
              "      <td>-0.004125</td>\n",
              "      <td>-0.005505</td>\n",
              "      <td>0.034362</td>\n",
              "      <td>-0.000981</td>\n",
              "      <td>0.051298</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-11</th>\n",
              "      <td>0.002525</td>\n",
              "      <td>-0.051546</td>\n",
              "      <td>-0.018060</td>\n",
              "      <td>-0.011160</td>\n",
              "      <td>-0.001140</td>\n",
              "      <td>-0.010855</td>\n",
              "      <td>0.004199</td>\n",
              "      <td>-0.011534</td>\n",
              "      <td>-0.027422</td>\n",
              "      <td>-0.001920</td>\n",
              "      <td>-0.006720</td>\n",
              "      <td>-0.005807</td>\n",
              "      <td>-0.011129</td>\n",
              "      <td>0.005027</td>\n",
              "      <td>-0.004624</td>\n",
              "      <td>0.001452</td>\n",
              "      <td>-0.039321</td>\n",
              "      <td>-0.017161</td>\n",
              "      <td>0.016975</td>\n",
              "      <td>-0.131678</td>\n",
              "      <td>-0.034565</td>\n",
              "      <td>-0.009409</td>\n",
              "      <td>0.021433</td>\n",
              "      <td>-0.050952</td>\n",
              "      <td>-0.001468</td>\n",
              "      <td>-0.042267</td>\n",
              "      <td>-0.009690</td>\n",
              "      <td>-0.019204</td>\n",
              "      <td>-0.026079</td>\n",
              "      <td>-0.019091</td>\n",
              "      <td>-0.024457</td>\n",
              "      <td>-0.015408</td>\n",
              "      <td>-0.021286</td>\n",
              "      <td>0.025757</td>\n",
              "      <td>-0.045002</td>\n",
              "      <td>-0.003195</td>\n",
              "      <td>-0.010422</td>\n",
              "      <td>-0.015219</td>\n",
              "      <td>-0.010608</td>\n",
              "      <td>0.016147</td>\n",
              "      <td>...</td>\n",
              "      <td>0.006707</td>\n",
              "      <td>0.012318</td>\n",
              "      <td>-0.001004</td>\n",
              "      <td>-0.030377</td>\n",
              "      <td>-0.039871</td>\n",
              "      <td>-0.002039</td>\n",
              "      <td>-0.003556</td>\n",
              "      <td>-0.009094</td>\n",
              "      <td>-0.008226</td>\n",
              "      <td>-0.027586</td>\n",
              "      <td>-0.016368</td>\n",
              "      <td>-0.023859</td>\n",
              "      <td>0.017544</td>\n",
              "      <td>-0.020278</td>\n",
              "      <td>-0.018754</td>\n",
              "      <td>-0.010090</td>\n",
              "      <td>-0.025324</td>\n",
              "      <td>-0.003284</td>\n",
              "      <td>0.000405</td>\n",
              "      <td>-0.005444</td>\n",
              "      <td>0.003498</td>\n",
              "      <td>0.000671</td>\n",
              "      <td>-0.023734</td>\n",
              "      <td>-0.061179</td>\n",
              "      <td>-0.006067</td>\n",
              "      <td>-0.005733</td>\n",
              "      <td>0.004780</td>\n",
              "      <td>-0.027027</td>\n",
              "      <td>0.006483</td>\n",
              "      <td>-0.022043</td>\n",
              "      <td>-0.036545</td>\n",
              "      <td>-0.017201</td>\n",
              "      <td>-0.037214</td>\n",
              "      <td>-0.000740</td>\n",
              "      <td>-0.008824</td>\n",
              "      <td>-0.009073</td>\n",
              "      <td>-0.006513</td>\n",
              "      <td>-0.034347</td>\n",
              "      <td>-0.038310</td>\n",
              "      <td>-0.083133</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-12</th>\n",
              "      <td>0.020151</td>\n",
              "      <td>0.047101</td>\n",
              "      <td>0.008856</td>\n",
              "      <td>0.015211</td>\n",
              "      <td>0.006849</td>\n",
              "      <td>0.052126</td>\n",
              "      <td>-0.015532</td>\n",
              "      <td>0.008133</td>\n",
              "      <td>0.035088</td>\n",
              "      <td>0.003367</td>\n",
              "      <td>-0.018042</td>\n",
              "      <td>0.009346</td>\n",
              "      <td>0.014945</td>\n",
              "      <td>0.030846</td>\n",
              "      <td>-0.004065</td>\n",
              "      <td>0.001933</td>\n",
              "      <td>0.033488</td>\n",
              "      <td>0.046825</td>\n",
              "      <td>-0.007587</td>\n",
              "      <td>0.016190</td>\n",
              "      <td>0.039506</td>\n",
              "      <td>0.032112</td>\n",
              "      <td>0.022782</td>\n",
              "      <td>-0.003796</td>\n",
              "      <td>0.024991</td>\n",
              "      <td>0.095286</td>\n",
              "      <td>0.039139</td>\n",
              "      <td>0.062937</td>\n",
              "      <td>-0.000923</td>\n",
              "      <td>0.033364</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.004695</td>\n",
              "      <td>0.027342</td>\n",
              "      <td>-0.010351</td>\n",
              "      <td>0.032623</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.028722</td>\n",
              "      <td>0.037370</td>\n",
              "      <td>0.001340</td>\n",
              "      <td>0.009041</td>\n",
              "      <td>...</td>\n",
              "      <td>0.044821</td>\n",
              "      <td>0.012618</td>\n",
              "      <td>0.016080</td>\n",
              "      <td>0.030075</td>\n",
              "      <td>-0.003367</td>\n",
              "      <td>0.042906</td>\n",
              "      <td>0.003569</td>\n",
              "      <td>0.021519</td>\n",
              "      <td>0.001185</td>\n",
              "      <td>0.004559</td>\n",
              "      <td>-0.007924</td>\n",
              "      <td>0.006022</td>\n",
              "      <td>0.031404</td>\n",
              "      <td>0.005027</td>\n",
              "      <td>0.005049</td>\n",
              "      <td>0.019819</td>\n",
              "      <td>0.020785</td>\n",
              "      <td>0.001745</td>\n",
              "      <td>0.019028</td>\n",
              "      <td>0.005895</td>\n",
              "      <td>0.012006</td>\n",
              "      <td>0.012735</td>\n",
              "      <td>0.001216</td>\n",
              "      <td>0.010541</td>\n",
              "      <td>0.014388</td>\n",
              "      <td>0.001483</td>\n",
              "      <td>0.040438</td>\n",
              "      <td>0.024306</td>\n",
              "      <td>0.014945</td>\n",
              "      <td>0.022539</td>\n",
              "      <td>0.036015</td>\n",
              "      <td>0.073720</td>\n",
              "      <td>0.015185</td>\n",
              "      <td>0.002963</td>\n",
              "      <td>0.023145</td>\n",
              "      <td>0.014331</td>\n",
              "      <td>0.019666</td>\n",
              "      <td>0.008163</td>\n",
              "      <td>0.002043</td>\n",
              "      <td>-0.012484</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-13</th>\n",
              "      <td>0.008642</td>\n",
              "      <td>0.027682</td>\n",
              "      <td>-0.051767</td>\n",
              "      <td>0.018850</td>\n",
              "      <td>0.006803</td>\n",
              "      <td>0.020860</td>\n",
              "      <td>0.006675</td>\n",
              "      <td>0.015082</td>\n",
              "      <td>0.011804</td>\n",
              "      <td>0.022531</td>\n",
              "      <td>0.007809</td>\n",
              "      <td>0.014275</td>\n",
              "      <td>0.054899</td>\n",
              "      <td>-0.021431</td>\n",
              "      <td>0.002915</td>\n",
              "      <td>-0.002412</td>\n",
              "      <td>0.002700</td>\n",
              "      <td>0.009098</td>\n",
              "      <td>-0.003670</td>\n",
              "      <td>-0.012215</td>\n",
              "      <td>0.011876</td>\n",
              "      <td>0.013146</td>\n",
              "      <td>0.007034</td>\n",
              "      <td>-0.009254</td>\n",
              "      <td>-0.005737</td>\n",
              "      <td>-0.049451</td>\n",
              "      <td>-0.013183</td>\n",
              "      <td>0.017982</td>\n",
              "      <td>-0.016174</td>\n",
              "      <td>0.022422</td>\n",
              "      <td>0.025070</td>\n",
              "      <td>0.030660</td>\n",
              "      <td>0.006654</td>\n",
              "      <td>-0.020918</td>\n",
              "      <td>0.015796</td>\n",
              "      <td>0.008191</td>\n",
              "      <td>-0.015821</td>\n",
              "      <td>0.006771</td>\n",
              "      <td>0.026991</td>\n",
              "      <td>-0.000815</td>\n",
              "      <td>...</td>\n",
              "      <td>0.026667</td>\n",
              "      <td>0.012461</td>\n",
              "      <td>-0.007418</td>\n",
              "      <td>0.030414</td>\n",
              "      <td>0.023649</td>\n",
              "      <td>-0.013278</td>\n",
              "      <td>0.003556</td>\n",
              "      <td>0.013321</td>\n",
              "      <td>0.007101</td>\n",
              "      <td>-0.013111</td>\n",
              "      <td>0.007987</td>\n",
              "      <td>-0.004225</td>\n",
              "      <td>0.027463</td>\n",
              "      <td>0.015004</td>\n",
              "      <td>-0.002153</td>\n",
              "      <td>-0.005552</td>\n",
              "      <td>0.005090</td>\n",
              "      <td>0.017608</td>\n",
              "      <td>0.017084</td>\n",
              "      <td>0.039766</td>\n",
              "      <td>-0.009185</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.012141</td>\n",
              "      <td>0.026079</td>\n",
              "      <td>-0.002149</td>\n",
              "      <td>0.000329</td>\n",
              "      <td>0.021033</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.027164</td>\n",
              "      <td>0.001470</td>\n",
              "      <td>0.008876</td>\n",
              "      <td>0.022722</td>\n",
              "      <td>0.009519</td>\n",
              "      <td>-0.002954</td>\n",
              "      <td>0.013341</td>\n",
              "      <td>-0.005298</td>\n",
              "      <td>-0.000643</td>\n",
              "      <td>0.002313</td>\n",
              "      <td>-0.003058</td>\n",
              "      <td>0.038589</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-14</th>\n",
              "      <td>-0.022032</td>\n",
              "      <td>-0.016835</td>\n",
              "      <td>-0.002611</td>\n",
              "      <td>-0.009962</td>\n",
              "      <td>-0.006757</td>\n",
              "      <td>-0.042146</td>\n",
              "      <td>0.001206</td>\n",
              "      <td>-0.006220</td>\n",
              "      <td>-0.034699</td>\n",
              "      <td>-0.015002</td>\n",
              "      <td>-0.011395</td>\n",
              "      <td>-0.006847</td>\n",
              "      <td>-0.004480</td>\n",
              "      <td>0.048760</td>\n",
              "      <td>0.002326</td>\n",
              "      <td>0.001451</td>\n",
              "      <td>-0.008977</td>\n",
              "      <td>-0.010518</td>\n",
              "      <td>-0.002149</td>\n",
              "      <td>-0.025806</td>\n",
              "      <td>-0.017606</td>\n",
              "      <td>-0.006920</td>\n",
              "      <td>-0.006403</td>\n",
              "      <td>-0.010440</td>\n",
              "      <td>-0.020555</td>\n",
              "      <td>-0.024085</td>\n",
              "      <td>-0.003817</td>\n",
              "      <td>-0.013356</td>\n",
              "      <td>0.009394</td>\n",
              "      <td>-0.029825</td>\n",
              "      <td>0.002717</td>\n",
              "      <td>-0.008391</td>\n",
              "      <td>-0.035301</td>\n",
              "      <td>-0.000198</td>\n",
              "      <td>-0.010799</td>\n",
              "      <td>-0.012010</td>\n",
              "      <td>-0.012057</td>\n",
              "      <td>-0.013183</td>\n",
              "      <td>-0.011512</td>\n",
              "      <td>-0.008424</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.018069</td>\n",
              "      <td>-0.010989</td>\n",
              "      <td>-0.010962</td>\n",
              "      <td>-0.033058</td>\n",
              "      <td>-0.002200</td>\n",
              "      <td>-0.003309</td>\n",
              "      <td>-0.012757</td>\n",
              "      <td>-0.013452</td>\n",
              "      <td>-0.021152</td>\n",
              "      <td>-0.004088</td>\n",
              "      <td>-0.022979</td>\n",
              "      <td>-0.012023</td>\n",
              "      <td>0.035445</td>\n",
              "      <td>-0.005217</td>\n",
              "      <td>0.019417</td>\n",
              "      <td>0.001117</td>\n",
              "      <td>-0.031514</td>\n",
              "      <td>-0.024339</td>\n",
              "      <td>-0.007422</td>\n",
              "      <td>0.000403</td>\n",
              "      <td>-0.025106</td>\n",
              "      <td>0.000662</td>\n",
              "      <td>0.004916</td>\n",
              "      <td>-0.005545</td>\n",
              "      <td>-0.024768</td>\n",
              "      <td>-0.006413</td>\n",
              "      <td>-0.013883</td>\n",
              "      <td>-0.020339</td>\n",
              "      <td>-0.001730</td>\n",
              "      <td>-0.005869</td>\n",
              "      <td>-0.032991</td>\n",
              "      <td>-0.061096</td>\n",
              "      <td>-0.018858</td>\n",
              "      <td>-0.008889</td>\n",
              "      <td>-0.027476</td>\n",
              "      <td>-0.007891</td>\n",
              "      <td>-0.011258</td>\n",
              "      <td>-0.006924</td>\n",
              "      <td>-0.004601</td>\n",
              "      <td>0.005766</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-17</th>\n",
              "      <td>-0.020025</td>\n",
              "      <td>-0.054795</td>\n",
              "      <td>-0.001904</td>\n",
              "      <td>-0.043124</td>\n",
              "      <td>-0.009070</td>\n",
              "      <td>-0.013333</td>\n",
              "      <td>0.009031</td>\n",
              "      <td>-0.004868</td>\n",
              "      <td>-0.032848</td>\n",
              "      <td>-0.022846</td>\n",
              "      <td>-0.029507</td>\n",
              "      <td>-0.022214</td>\n",
              "      <td>-0.051065</td>\n",
              "      <td>-0.060678</td>\n",
              "      <td>-0.012761</td>\n",
              "      <td>-0.006760</td>\n",
              "      <td>-0.027174</td>\n",
              "      <td>-0.043280</td>\n",
              "      <td>0.004306</td>\n",
              "      <td>-0.039183</td>\n",
              "      <td>-0.068100</td>\n",
              "      <td>-0.029617</td>\n",
              "      <td>-0.016989</td>\n",
              "      <td>-0.018878</td>\n",
              "      <td>-0.035714</td>\n",
              "      <td>0.283317</td>\n",
              "      <td>-0.026820</td>\n",
              "      <td>-0.037555</td>\n",
              "      <td>-0.019079</td>\n",
              "      <td>-0.031646</td>\n",
              "      <td>-0.037940</td>\n",
              "      <td>-0.023846</td>\n",
              "      <td>-0.059950</td>\n",
              "      <td>-0.016620</td>\n",
              "      <td>-0.051965</td>\n",
              "      <td>-0.012871</td>\n",
              "      <td>-0.030151</td>\n",
              "      <td>-0.033533</td>\n",
              "      <td>0.028785</td>\n",
              "      <td>-0.000822</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.039678</td>\n",
              "      <td>-0.029778</td>\n",
              "      <td>-0.026448</td>\n",
              "      <td>-0.034188</td>\n",
              "      <td>-0.048512</td>\n",
              "      <td>-0.018814</td>\n",
              "      <td>-0.020818</td>\n",
              "      <td>0.003409</td>\n",
              "      <td>-0.020408</td>\n",
              "      <td>-0.027193</td>\n",
              "      <td>-0.036496</td>\n",
              "      <td>-0.075519</td>\n",
              "      <td>-0.025253</td>\n",
              "      <td>-0.016317</td>\n",
              "      <td>-0.040917</td>\n",
              "      <td>-0.027328</td>\n",
              "      <td>-0.045322</td>\n",
              "      <td>-0.017930</td>\n",
              "      <td>-0.033058</td>\n",
              "      <td>-0.004829</td>\n",
              "      <td>-0.016640</td>\n",
              "      <td>-0.001323</td>\n",
              "      <td>-0.024460</td>\n",
              "      <td>-0.051580</td>\n",
              "      <td>-0.040415</td>\n",
              "      <td>-0.010096</td>\n",
              "      <td>-0.015895</td>\n",
              "      <td>-0.042676</td>\n",
              "      <td>-0.004209</td>\n",
              "      <td>-0.027306</td>\n",
              "      <td>-0.033738</td>\n",
              "      <td>-0.074588</td>\n",
              "      <td>-0.020044</td>\n",
              "      <td>-0.012706</td>\n",
              "      <td>-0.021778</td>\n",
              "      <td>-0.024259</td>\n",
              "      <td>-0.003904</td>\n",
              "      <td>-0.038931</td>\n",
              "      <td>-0.012327</td>\n",
              "      <td>-0.059873</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-18</th>\n",
              "      <td>0.078544</td>\n",
              "      <td>0.007246</td>\n",
              "      <td>0.000715</td>\n",
              "      <td>0.027541</td>\n",
              "      <td>0.012586</td>\n",
              "      <td>0.018919</td>\n",
              "      <td>-0.009547</td>\n",
              "      <td>0.009783</td>\n",
              "      <td>0.016341</td>\n",
              "      <td>0.017048</td>\n",
              "      <td>0.019952</td>\n",
              "      <td>-0.000783</td>\n",
              "      <td>0.005655</td>\n",
              "      <td>0.021812</td>\n",
              "      <td>0.005288</td>\n",
              "      <td>-0.006806</td>\n",
              "      <td>0.021415</td>\n",
              "      <td>0.019048</td>\n",
              "      <td>0.002450</td>\n",
              "      <td>0.048248</td>\n",
              "      <td>0.010256</td>\n",
              "      <td>0.013465</td>\n",
              "      <td>-0.020858</td>\n",
              "      <td>0.009621</td>\n",
              "      <td>0.014128</td>\n",
              "      <td>-0.030000</td>\n",
              "      <td>0.021654</td>\n",
              "      <td>0.000907</td>\n",
              "      <td>0.007116</td>\n",
              "      <td>0.018674</td>\n",
              "      <td>0.002817</td>\n",
              "      <td>0.016548</td>\n",
              "      <td>0.021700</td>\n",
              "      <td>-0.001408</td>\n",
              "      <td>0.024873</td>\n",
              "      <td>0.022818</td>\n",
              "      <td>0.013077</td>\n",
              "      <td>0.009309</td>\n",
              "      <td>-0.002990</td>\n",
              "      <td>0.002743</td>\n",
              "      <td>...</td>\n",
              "      <td>0.028743</td>\n",
              "      <td>0.009162</td>\n",
              "      <td>0.009056</td>\n",
              "      <td>0.029077</td>\n",
              "      <td>0.005214</td>\n",
              "      <td>0.012181</td>\n",
              "      <td>0.008798</td>\n",
              "      <td>0.009883</td>\n",
              "      <td>0.017157</td>\n",
              "      <td>0.001582</td>\n",
              "      <td>0.005892</td>\n",
              "      <td>0.024390</td>\n",
              "      <td>0.002303</td>\n",
              "      <td>0.023697</td>\n",
              "      <td>0.017286</td>\n",
              "      <td>0.001720</td>\n",
              "      <td>0.010347</td>\n",
              "      <td>-0.009327</td>\n",
              "      <td>0.008140</td>\n",
              "      <td>0.006874</td>\n",
              "      <td>0.020548</td>\n",
              "      <td>-0.009272</td>\n",
              "      <td>0.015044</td>\n",
              "      <td>0.001470</td>\n",
              "      <td>0.037514</td>\n",
              "      <td>-0.004681</td>\n",
              "      <td>-0.024919</td>\n",
              "      <td>0.012048</td>\n",
              "      <td>-0.004227</td>\n",
              "      <td>0.015175</td>\n",
              "      <td>0.009023</td>\n",
              "      <td>0.045859</td>\n",
              "      <td>0.018212</td>\n",
              "      <td>-0.005299</td>\n",
              "      <td>0.015042</td>\n",
              "      <td>-0.000815</td>\n",
              "      <td>0.002613</td>\n",
              "      <td>0.010883</td>\n",
              "      <td>0.010400</td>\n",
              "      <td>0.027100</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-19</th>\n",
              "      <td>-0.006513</td>\n",
              "      <td>-0.014388</td>\n",
              "      <td>0.014296</td>\n",
              "      <td>0.003899</td>\n",
              "      <td>0.015819</td>\n",
              "      <td>0.014589</td>\n",
              "      <td>0.018675</td>\n",
              "      <td>0.007612</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.021073</td>\n",
              "      <td>0.008384</td>\n",
              "      <td>0.001960</td>\n",
              "      <td>-0.023036</td>\n",
              "      <td>-0.007800</td>\n",
              "      <td>0.004091</td>\n",
              "      <td>0.001958</td>\n",
              "      <td>0.000912</td>\n",
              "      <td>0.003115</td>\n",
              "      <td>0.013138</td>\n",
              "      <td>0.084932</td>\n",
              "      <td>0.015228</td>\n",
              "      <td>0.003100</td>\n",
              "      <td>-0.006086</td>\n",
              "      <td>0.005045</td>\n",
              "      <td>0.002259</td>\n",
              "      <td>0.045995</td>\n",
              "      <td>-0.015414</td>\n",
              "      <td>0.000907</td>\n",
              "      <td>0.027320</td>\n",
              "      <td>-0.004583</td>\n",
              "      <td>-0.011236</td>\n",
              "      <td>0.003101</td>\n",
              "      <td>-0.008106</td>\n",
              "      <td>0.006448</td>\n",
              "      <td>-0.000449</td>\n",
              "      <td>-0.002479</td>\n",
              "      <td>0.010716</td>\n",
              "      <td>-0.007267</td>\n",
              "      <td>-0.006213</td>\n",
              "      <td>0.001368</td>\n",
              "      <td>...</td>\n",
              "      <td>0.007567</td>\n",
              "      <td>0.005901</td>\n",
              "      <td>0.003590</td>\n",
              "      <td>0.022113</td>\n",
              "      <td>0.002882</td>\n",
              "      <td>-0.007577</td>\n",
              "      <td>0.002907</td>\n",
              "      <td>0.007951</td>\n",
              "      <td>0.008434</td>\n",
              "      <td>0.015798</td>\n",
              "      <td>0.023431</td>\n",
              "      <td>-0.004913</td>\n",
              "      <td>0.012636</td>\n",
              "      <td>0.044271</td>\n",
              "      <td>-0.008677</td>\n",
              "      <td>0.005152</td>\n",
              "      <td>-0.002410</td>\n",
              "      <td>0.007412</td>\n",
              "      <td>0.008478</td>\n",
              "      <td>-0.022490</td>\n",
              "      <td>0.024872</td>\n",
              "      <td>0.010695</td>\n",
              "      <td>0.003294</td>\n",
              "      <td>0.010274</td>\n",
              "      <td>-0.000444</td>\n",
              "      <td>0.010583</td>\n",
              "      <td>0.012778</td>\n",
              "      <td>0.017857</td>\n",
              "      <td>0.005993</td>\n",
              "      <td>0.010463</td>\n",
              "      <td>0.015941</td>\n",
              "      <td>-0.008504</td>\n",
              "      <td>0.025041</td>\n",
              "      <td>0.004566</td>\n",
              "      <td>0.007706</td>\n",
              "      <td>0.022639</td>\n",
              "      <td>0.018567</td>\n",
              "      <td>0.023325</td>\n",
              "      <td>0.002059</td>\n",
              "      <td>0.018470</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-20</th>\n",
              "      <td>0.002980</td>\n",
              "      <td>0.043796</td>\n",
              "      <td>-0.014329</td>\n",
              "      <td>0.010680</td>\n",
              "      <td>0.011123</td>\n",
              "      <td>0.039216</td>\n",
              "      <td>0.002365</td>\n",
              "      <td>-0.006181</td>\n",
              "      <td>0.011980</td>\n",
              "      <td>0.006098</td>\n",
              "      <td>0.010624</td>\n",
              "      <td>0.008607</td>\n",
              "      <td>0.004085</td>\n",
              "      <td>0.004137</td>\n",
              "      <td>0.005821</td>\n",
              "      <td>0.014656</td>\n",
              "      <td>0.015483</td>\n",
              "      <td>-0.010870</td>\n",
              "      <td>0.004222</td>\n",
              "      <td>0.212626</td>\n",
              "      <td>0.052500</td>\n",
              "      <td>0.010155</td>\n",
              "      <td>0.014697</td>\n",
              "      <td>0.001673</td>\n",
              "      <td>0.006011</td>\n",
              "      <td>-0.000758</td>\n",
              "      <td>0.001957</td>\n",
              "      <td>0.005888</td>\n",
              "      <td>0.009629</td>\n",
              "      <td>0.011971</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.009274</td>\n",
              "      <td>0.020432</td>\n",
              "      <td>0.002402</td>\n",
              "      <td>0.040018</td>\n",
              "      <td>0.020589</td>\n",
              "      <td>0.013133</td>\n",
              "      <td>-0.003378</td>\n",
              "      <td>0.019185</td>\n",
              "      <td>0.004644</td>\n",
              "      <td>...</td>\n",
              "      <td>0.011554</td>\n",
              "      <td>0.022563</td>\n",
              "      <td>0.008431</td>\n",
              "      <td>0.038462</td>\n",
              "      <td>0.022989</td>\n",
              "      <td>0.022457</td>\n",
              "      <td>0.009420</td>\n",
              "      <td>0.010922</td>\n",
              "      <td>0.009558</td>\n",
              "      <td>0.010368</td>\n",
              "      <td>0.017171</td>\n",
              "      <td>0.029244</td>\n",
              "      <td>-0.008508</td>\n",
              "      <td>0.006373</td>\n",
              "      <td>0.036105</td>\n",
              "      <td>0.009112</td>\n",
              "      <td>0.021739</td>\n",
              "      <td>0.001790</td>\n",
              "      <td>-0.002002</td>\n",
              "      <td>0.023829</td>\n",
              "      <td>0.026194</td>\n",
              "      <td>0.005291</td>\n",
              "      <td>0.036931</td>\n",
              "      <td>0.032930</td>\n",
              "      <td>0.062139</td>\n",
              "      <td>-0.001496</td>\n",
              "      <td>0.016355</td>\n",
              "      <td>0.022222</td>\n",
              "      <td>0.000745</td>\n",
              "      <td>0.007396</td>\n",
              "      <td>0.005358</td>\n",
              "      <td>0.010453</td>\n",
              "      <td>0.001879</td>\n",
              "      <td>0.006818</td>\n",
              "      <td>0.017059</td>\n",
              "      <td>0.008576</td>\n",
              "      <td>0.040614</td>\n",
              "      <td>-0.016949</td>\n",
              "      <td>0.009759</td>\n",
              "      <td>0.053756</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-21</th>\n",
              "      <td>0.008913</td>\n",
              "      <td>0.045455</td>\n",
              "      <td>0.002145</td>\n",
              "      <td>0.017291</td>\n",
              "      <td>0.002200</td>\n",
              "      <td>0.025157</td>\n",
              "      <td>0.002360</td>\n",
              "      <td>-0.024188</td>\n",
              "      <td>0.023053</td>\n",
              "      <td>0.016317</td>\n",
              "      <td>0.025137</td>\n",
              "      <td>0.028317</td>\n",
              "      <td>0.017197</td>\n",
              "      <td>0.009889</td>\n",
              "      <td>0.021991</td>\n",
              "      <td>0.009629</td>\n",
              "      <td>0.023318</td>\n",
              "      <td>0.043171</td>\n",
              "      <td>0.000901</td>\n",
              "      <td>0.017076</td>\n",
              "      <td>0.061758</td>\n",
              "      <td>0.040210</td>\n",
              "      <td>0.013881</td>\n",
              "      <td>0.025612</td>\n",
              "      <td>0.032114</td>\n",
              "      <td>0.009863</td>\n",
              "      <td>0.025391</td>\n",
              "      <td>0.034219</td>\n",
              "      <td>0.019528</td>\n",
              "      <td>0.020928</td>\n",
              "      <td>0.051136</td>\n",
              "      <td>0.017611</td>\n",
              "      <td>-0.001442</td>\n",
              "      <td>0.005792</td>\n",
              "      <td>0.022914</td>\n",
              "      <td>0.002783</td>\n",
              "      <td>0.010822</td>\n",
              "      <td>0.014407</td>\n",
              "      <td>0.007614</td>\n",
              "      <td>0.003535</td>\n",
              "      <td>...</td>\n",
              "      <td>0.031411</td>\n",
              "      <td>0.011474</td>\n",
              "      <td>0.016215</td>\n",
              "      <td>0.013889</td>\n",
              "      <td>0.009551</td>\n",
              "      <td>0.025478</td>\n",
              "      <td>0.017229</td>\n",
              "      <td>0.053721</td>\n",
              "      <td>0.007101</td>\n",
              "      <td>0.023602</td>\n",
              "      <td>0.029743</td>\n",
              "      <td>0.023616</td>\n",
              "      <td>0.017162</td>\n",
              "      <td>0.023128</td>\n",
              "      <td>0.014784</td>\n",
              "      <td>0.021445</td>\n",
              "      <td>0.025414</td>\n",
              "      <td>0.028186</td>\n",
              "      <td>0.024067</td>\n",
              "      <td>0.034109</td>\n",
              "      <td>-0.002628</td>\n",
              "      <td>0.017763</td>\n",
              "      <td>0.024139</td>\n",
              "      <td>0.016409</td>\n",
              "      <td>0.048057</td>\n",
              "      <td>0.011653</td>\n",
              "      <td>0.006897</td>\n",
              "      <td>0.024027</td>\n",
              "      <td>-0.006696</td>\n",
              "      <td>0.030103</td>\n",
              "      <td>0.033879</td>\n",
              "      <td>0.027586</td>\n",
              "      <td>0.027599</td>\n",
              "      <td>0.017306</td>\n",
              "      <td>0.023713</td>\n",
              "      <td>0.019577</td>\n",
              "      <td>-0.001229</td>\n",
              "      <td>0.020809</td>\n",
              "      <td>0.021363</td>\n",
              "      <td>0.036878</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-24</th>\n",
              "      <td>-0.001767</td>\n",
              "      <td>0.013378</td>\n",
              "      <td>-0.014031</td>\n",
              "      <td>-0.000944</td>\n",
              "      <td>-0.011526</td>\n",
              "      <td>0.069939</td>\n",
              "      <td>0.015303</td>\n",
              "      <td>0.002479</td>\n",
              "      <td>-0.003350</td>\n",
              "      <td>-0.006422</td>\n",
              "      <td>-0.009808</td>\n",
              "      <td>0.003772</td>\n",
              "      <td>0.015452</td>\n",
              "      <td>-0.019992</td>\n",
              "      <td>0.005663</td>\n",
              "      <td>0.001431</td>\n",
              "      <td>0.011394</td>\n",
              "      <td>-0.015801</td>\n",
              "      <td>-0.001200</td>\n",
              "      <td>0.030303</td>\n",
              "      <td>0.015660</td>\n",
              "      <td>0.008824</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.019544</td>\n",
              "      <td>0.008321</td>\n",
              "      <td>0.021788</td>\n",
              "      <td>0.007619</td>\n",
              "      <td>0.001741</td>\n",
              "      <td>0.004900</td>\n",
              "      <td>-0.019608</td>\n",
              "      <td>0.081081</td>\n",
              "      <td>-0.000752</td>\n",
              "      <td>-0.030318</td>\n",
              "      <td>-0.004170</td>\n",
              "      <td>-0.005495</td>\n",
              "      <td>-0.010059</td>\n",
              "      <td>-0.005882</td>\n",
              "      <td>0.006962</td>\n",
              "      <td>0.002309</td>\n",
              "      <td>0.007857</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.007752</td>\n",
              "      <td>-0.011780</td>\n",
              "      <td>-0.001995</td>\n",
              "      <td>0.033105</td>\n",
              "      <td>-0.025042</td>\n",
              "      <td>0.010066</td>\n",
              "      <td>-0.014820</td>\n",
              "      <td>0.015380</td>\n",
              "      <td>-0.015276</td>\n",
              "      <td>0.002506</td>\n",
              "      <td>0.022639</td>\n",
              "      <td>-0.014780</td>\n",
              "      <td>-0.009561</td>\n",
              "      <td>-0.009419</td>\n",
              "      <td>-0.009365</td>\n",
              "      <td>0.001105</td>\n",
              "      <td>-0.002305</td>\n",
              "      <td>-0.006178</td>\n",
              "      <td>-0.007051</td>\n",
              "      <td>0.017074</td>\n",
              "      <td>-0.013549</td>\n",
              "      <td>-0.005171</td>\n",
              "      <td>-0.012365</td>\n",
              "      <td>-0.022140</td>\n",
              "      <td>-0.001595</td>\n",
              "      <td>0.017278</td>\n",
              "      <td>0.005936</td>\n",
              "      <td>0.002235</td>\n",
              "      <td>0.003745</td>\n",
              "      <td>-0.002851</td>\n",
              "      <td>-0.018778</td>\n",
              "      <td>-0.025555</td>\n",
              "      <td>-0.001825</td>\n",
              "      <td>0.002219</td>\n",
              "      <td>-0.003955</td>\n",
              "      <td>0.019589</td>\n",
              "      <td>0.001846</td>\n",
              "      <td>0.012813</td>\n",
              "      <td>-0.024402</td>\n",
              "      <td>-0.035566</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-25</th>\n",
              "      <td>-0.006490</td>\n",
              "      <td>0.082508</td>\n",
              "      <td>0.010130</td>\n",
              "      <td>0.001890</td>\n",
              "      <td>0.006108</td>\n",
              "      <td>0.012615</td>\n",
              "      <td>-0.003478</td>\n",
              "      <td>-0.025786</td>\n",
              "      <td>-0.001833</td>\n",
              "      <td>0.012004</td>\n",
              "      <td>-0.022963</td>\n",
              "      <td>-0.005637</td>\n",
              "      <td>-0.019155</td>\n",
              "      <td>0.010824</td>\n",
              "      <td>0.003378</td>\n",
              "      <td>-0.009048</td>\n",
              "      <td>-0.028596</td>\n",
              "      <td>0.012997</td>\n",
              "      <td>-0.002704</td>\n",
              "      <td>0.003577</td>\n",
              "      <td>0.013216</td>\n",
              "      <td>0.008330</td>\n",
              "      <td>0.002976</td>\n",
              "      <td>-0.012182</td>\n",
              "      <td>-0.001794</td>\n",
              "      <td>0.011765</td>\n",
              "      <td>0.134216</td>\n",
              "      <td>0.009561</td>\n",
              "      <td>-0.009309</td>\n",
              "      <td>-0.016364</td>\n",
              "      <td>0.005000</td>\n",
              "      <td>0.001506</td>\n",
              "      <td>0.012903</td>\n",
              "      <td>-0.000399</td>\n",
              "      <td>0.023799</td>\n",
              "      <td>-0.008059</td>\n",
              "      <td>-0.003669</td>\n",
              "      <td>-0.003042</td>\n",
              "      <td>0.012984</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>...</td>\n",
              "      <td>0.036272</td>\n",
              "      <td>-0.004415</td>\n",
              "      <td>0.015988</td>\n",
              "      <td>0.028729</td>\n",
              "      <td>0.009132</td>\n",
              "      <td>0.006785</td>\n",
              "      <td>0.015043</td>\n",
              "      <td>0.014306</td>\n",
              "      <td>0.013126</td>\n",
              "      <td>0.010000</td>\n",
              "      <td>-0.000763</td>\n",
              "      <td>0.026345</td>\n",
              "      <td>-0.008518</td>\n",
              "      <td>-0.001902</td>\n",
              "      <td>0.009804</td>\n",
              "      <td>-0.002759</td>\n",
              "      <td>0.003466</td>\n",
              "      <td>0.014569</td>\n",
              "      <td>0.036292</td>\n",
              "      <td>-0.016787</td>\n",
              "      <td>0.020984</td>\n",
              "      <td>0.003249</td>\n",
              "      <td>-0.001565</td>\n",
              "      <td>0.000472</td>\n",
              "      <td>-0.011382</td>\n",
              "      <td>-0.001941</td>\n",
              "      <td>-0.006809</td>\n",
              "      <td>-0.003344</td>\n",
              "      <td>0.002239</td>\n",
              "      <td>-0.002144</td>\n",
              "      <td>0.003752</td>\n",
              "      <td>0.045563</td>\n",
              "      <td>-0.025078</td>\n",
              "      <td>-0.003690</td>\n",
              "      <td>-0.006807</td>\n",
              "      <td>-0.008560</td>\n",
              "      <td>0.006450</td>\n",
              "      <td>0.018976</td>\n",
              "      <td>0.000510</td>\n",
              "      <td>-0.000615</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-26</th>\n",
              "      <td>0.005344</td>\n",
              "      <td>0.088415</td>\n",
              "      <td>-0.006686</td>\n",
              "      <td>-0.011792</td>\n",
              "      <td>-0.001656</td>\n",
              "      <td>0.003398</td>\n",
              "      <td>0.003490</td>\n",
              "      <td>0.012328</td>\n",
              "      <td>-0.004897</td>\n",
              "      <td>0.009124</td>\n",
              "      <td>0.005530</td>\n",
              "      <td>-0.009448</td>\n",
              "      <td>-0.002008</td>\n",
              "      <td>-0.003707</td>\n",
              "      <td>0.006173</td>\n",
              "      <td>0.006728</td>\n",
              "      <td>0.016057</td>\n",
              "      <td>-0.008302</td>\n",
              "      <td>-0.000602</td>\n",
              "      <td>0.109703</td>\n",
              "      <td>0.013043</td>\n",
              "      <td>0.005783</td>\n",
              "      <td>-0.005935</td>\n",
              "      <td>0.014574</td>\n",
              "      <td>-0.000719</td>\n",
              "      <td>0.001453</td>\n",
              "      <td>0.006667</td>\n",
              "      <td>0.005166</td>\n",
              "      <td>0.006264</td>\n",
              "      <td>0.004621</td>\n",
              "      <td>0.009950</td>\n",
              "      <td>-0.008271</td>\n",
              "      <td>0.040666</td>\n",
              "      <td>0.014562</td>\n",
              "      <td>-0.017850</td>\n",
              "      <td>-0.002473</td>\n",
              "      <td>-0.002257</td>\n",
              "      <td>0.004993</td>\n",
              "      <td>-0.013645</td>\n",
              "      <td>-0.010753</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.006462</td>\n",
              "      <td>-0.009756</td>\n",
              "      <td>-0.006639</td>\n",
              "      <td>0.001074</td>\n",
              "      <td>0.008484</td>\n",
              "      <td>0.001053</td>\n",
              "      <td>0.017643</td>\n",
              "      <td>-0.014381</td>\n",
              "      <td>0.030624</td>\n",
              "      <td>0.005941</td>\n",
              "      <td>0.006112</td>\n",
              "      <td>0.018182</td>\n",
              "      <td>0.021191</td>\n",
              "      <td>0.000544</td>\n",
              "      <td>-0.012483</td>\n",
              "      <td>0.004981</td>\n",
              "      <td>0.021301</td>\n",
              "      <td>-0.001149</td>\n",
              "      <td>0.026646</td>\n",
              "      <td>-0.005045</td>\n",
              "      <td>0.030269</td>\n",
              "      <td>0.009715</td>\n",
              "      <td>-0.003918</td>\n",
              "      <td>0.010372</td>\n",
              "      <td>-0.009695</td>\n",
              "      <td>-0.012480</td>\n",
              "      <td>0.005484</td>\n",
              "      <td>0.003356</td>\n",
              "      <td>0.002482</td>\n",
              "      <td>0.005731</td>\n",
              "      <td>0.008972</td>\n",
              "      <td>-0.014188</td>\n",
              "      <td>0.008574</td>\n",
              "      <td>0.005926</td>\n",
              "      <td>0.001142</td>\n",
              "      <td>0.009593</td>\n",
              "      <td>-0.010681</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.004082</td>\n",
              "      <td>-0.007995</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-27</th>\n",
              "      <td>0.002363</td>\n",
              "      <td>-0.030812</td>\n",
              "      <td>0.008654</td>\n",
              "      <td>0.012411</td>\n",
              "      <td>0.012161</td>\n",
              "      <td>-0.011287</td>\n",
              "      <td>0.011594</td>\n",
              "      <td>0.001433</td>\n",
              "      <td>-0.001538</td>\n",
              "      <td>-0.001356</td>\n",
              "      <td>0.011457</td>\n",
              "      <td>-0.000382</td>\n",
              "      <td>0.013168</td>\n",
              "      <td>0.002894</td>\n",
              "      <td>0.002789</td>\n",
              "      <td>0.005728</td>\n",
              "      <td>-0.022827</td>\n",
              "      <td>-0.009893</td>\n",
              "      <td>-0.001808</td>\n",
              "      <td>0.269094</td>\n",
              "      <td>0.007511</td>\n",
              "      <td>-0.008624</td>\n",
              "      <td>-0.001194</td>\n",
              "      <td>-0.003867</td>\n",
              "      <td>-0.003957</td>\n",
              "      <td>-0.002177</td>\n",
              "      <td>-0.031457</td>\n",
              "      <td>0.009422</td>\n",
              "      <td>-0.007114</td>\n",
              "      <td>-0.001840</td>\n",
              "      <td>0.041872</td>\n",
              "      <td>-0.006823</td>\n",
              "      <td>0.001255</td>\n",
              "      <td>-0.016123</td>\n",
              "      <td>0.008030</td>\n",
              "      <td>-0.006374</td>\n",
              "      <td>0.003690</td>\n",
              "      <td>0.002484</td>\n",
              "      <td>0.004402</td>\n",
              "      <td>-0.001359</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.006504</td>\n",
              "      <td>0.012091</td>\n",
              "      <td>-0.000990</td>\n",
              "      <td>-0.005365</td>\n",
              "      <td>0.006169</td>\n",
              "      <td>0.003997</td>\n",
              "      <td>-0.006935</td>\n",
              "      <td>0.004770</td>\n",
              "      <td>0.002286</td>\n",
              "      <td>-0.005906</td>\n",
              "      <td>0.001519</td>\n",
              "      <td>-0.008053</td>\n",
              "      <td>0.005048</td>\n",
              "      <td>0.016594</td>\n",
              "      <td>0.014747</td>\n",
              "      <td>-0.013216</td>\n",
              "      <td>0.026494</td>\n",
              "      <td>-0.008434</td>\n",
              "      <td>0.007045</td>\n",
              "      <td>0.005460</td>\n",
              "      <td>0.021400</td>\n",
              "      <td>0.000641</td>\n",
              "      <td>0.013769</td>\n",
              "      <td>0.004666</td>\n",
              "      <td>0.037324</td>\n",
              "      <td>-0.007221</td>\n",
              "      <td>-0.005000</td>\n",
              "      <td>-0.012263</td>\n",
              "      <td>-0.010646</td>\n",
              "      <td>0.015670</td>\n",
              "      <td>0.014820</td>\n",
              "      <td>-0.014649</td>\n",
              "      <td>0.005313</td>\n",
              "      <td>-0.001473</td>\n",
              "      <td>-0.003993</td>\n",
              "      <td>-0.007032</td>\n",
              "      <td>-0.005861</td>\n",
              "      <td>0.013544</td>\n",
              "      <td>-0.003586</td>\n",
              "      <td>0.001240</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-28</th>\n",
              "      <td>0.011786</td>\n",
              "      <td>-0.020231</td>\n",
              "      <td>0.000715</td>\n",
              "      <td>0.003300</td>\n",
              "      <td>0.002185</td>\n",
              "      <td>-0.038813</td>\n",
              "      <td>-0.014900</td>\n",
              "      <td>-0.026109</td>\n",
              "      <td>-0.022489</td>\n",
              "      <td>0.003169</td>\n",
              "      <td>0.014499</td>\n",
              "      <td>-0.001145</td>\n",
              "      <td>-0.001805</td>\n",
              "      <td>-0.014015</td>\n",
              "      <td>0.001112</td>\n",
              "      <td>0.006645</td>\n",
              "      <td>0.000898</td>\n",
              "      <td>-0.006918</td>\n",
              "      <td>0.009360</td>\n",
              "      <td>0.050056</td>\n",
              "      <td>0.001065</td>\n",
              "      <td>0.009942</td>\n",
              "      <td>-0.009564</td>\n",
              "      <td>0.004437</td>\n",
              "      <td>0.006501</td>\n",
              "      <td>-0.018182</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.002970</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.001843</td>\n",
              "      <td>0.056738</td>\n",
              "      <td>0.000763</td>\n",
              "      <td>0.006897</td>\n",
              "      <td>-0.010592</td>\n",
              "      <td>0.004612</td>\n",
              "      <td>-0.003920</td>\n",
              "      <td>-0.018385</td>\n",
              "      <td>0.001377</td>\n",
              "      <td>-0.022538</td>\n",
              "      <td>0.013878</td>\n",
              "      <td>...</td>\n",
              "      <td>0.007092</td>\n",
              "      <td>0.001327</td>\n",
              "      <td>-0.004460</td>\n",
              "      <td>0.005394</td>\n",
              "      <td>0.008361</td>\n",
              "      <td>-0.006077</td>\n",
              "      <td>0.011173</td>\n",
              "      <td>-0.000279</td>\n",
              "      <td>0.027366</td>\n",
              "      <td>0.003465</td>\n",
              "      <td>-0.001516</td>\n",
              "      <td>-0.006354</td>\n",
              "      <td>0.016741</td>\n",
              "      <td>-0.000803</td>\n",
              "      <td>0.013841</td>\n",
              "      <td>-0.001116</td>\n",
              "      <td>0.001647</td>\n",
              "      <td>-0.014885</td>\n",
              "      <td>0.001105</td>\n",
              "      <td>-0.026765</td>\n",
              "      <td>-0.013494</td>\n",
              "      <td>-0.007692</td>\n",
              "      <td>0.005821</td>\n",
              "      <td>-0.015792</td>\n",
              "      <td>0.024381</td>\n",
              "      <td>0.000331</td>\n",
              "      <td>-0.013705</td>\n",
              "      <td>-0.015801</td>\n",
              "      <td>-0.002252</td>\n",
              "      <td>-0.006311</td>\n",
              "      <td>0.012413</td>\n",
              "      <td>-0.001565</td>\n",
              "      <td>0.004493</td>\n",
              "      <td>-0.001475</td>\n",
              "      <td>0.025773</td>\n",
              "      <td>-0.010526</td>\n",
              "      <td>-0.013962</td>\n",
              "      <td>0.005568</td>\n",
              "      <td>0.000514</td>\n",
              "      <td>0.039009</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-08-31</th>\n",
              "      <td>-0.005824</td>\n",
              "      <td>-0.047198</td>\n",
              "      <td>-0.019052</td>\n",
              "      <td>-0.010808</td>\n",
              "      <td>0.005450</td>\n",
              "      <td>-0.016627</td>\n",
              "      <td>-0.015125</td>\n",
              "      <td>-0.034888</td>\n",
              "      <td>-0.009770</td>\n",
              "      <td>-0.015343</td>\n",
              "      <td>0.007146</td>\n",
              "      <td>-0.005732</td>\n",
              "      <td>-0.024593</td>\n",
              "      <td>-0.020485</td>\n",
              "      <td>-0.021667</td>\n",
              "      <td>-0.013201</td>\n",
              "      <td>-0.017953</td>\n",
              "      <td>-0.002322</td>\n",
              "      <td>-0.001496</td>\n",
              "      <td>-0.097483</td>\n",
              "      <td>-0.030851</td>\n",
              "      <td>0.005332</td>\n",
              "      <td>0.006639</td>\n",
              "      <td>-0.025953</td>\n",
              "      <td>-0.005741</td>\n",
              "      <td>-0.007407</td>\n",
              "      <td>-0.022222</td>\n",
              "      <td>0.004230</td>\n",
              "      <td>0.010748</td>\n",
              "      <td>-0.006464</td>\n",
              "      <td>-0.024609</td>\n",
              "      <td>0.001526</td>\n",
              "      <td>-0.006382</td>\n",
              "      <td>0.002828</td>\n",
              "      <td>-0.005426</td>\n",
              "      <td>-0.014311</td>\n",
              "      <td>-0.018971</td>\n",
              "      <td>-0.033819</td>\n",
              "      <td>-0.016225</td>\n",
              "      <td>-0.007246</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.005417</td>\n",
              "      <td>-0.013699</td>\n",
              "      <td>-0.004729</td>\n",
              "      <td>-0.013948</td>\n",
              "      <td>0.008292</td>\n",
              "      <td>-0.004849</td>\n",
              "      <td>0.008287</td>\n",
              "      <td>0.055028</td>\n",
              "      <td>-0.021088</td>\n",
              "      <td>-0.005427</td>\n",
              "      <td>-0.013667</td>\n",
              "      <td>-0.002487</td>\n",
              "      <td>-0.012623</td>\n",
              "      <td>0.001875</td>\n",
              "      <td>-0.010922</td>\n",
              "      <td>0.000559</td>\n",
              "      <td>-0.014254</td>\n",
              "      <td>-0.013344</td>\n",
              "      <td>0.005885</td>\n",
              "      <td>-0.032682</td>\n",
              "      <td>-0.001800</td>\n",
              "      <td>-0.009044</td>\n",
              "      <td>-0.008488</td>\n",
              "      <td>0.008023</td>\n",
              "      <td>-0.028791</td>\n",
              "      <td>-0.004958</td>\n",
              "      <td>0.009727</td>\n",
              "      <td>-0.020642</td>\n",
              "      <td>-0.005016</td>\n",
              "      <td>-0.038814</td>\n",
              "      <td>-0.010819</td>\n",
              "      <td>-0.038140</td>\n",
              "      <td>-0.026835</td>\n",
              "      <td>-0.007386</td>\n",
              "      <td>-0.018425</td>\n",
              "      <td>-0.013733</td>\n",
              "      <td>-0.001888</td>\n",
              "      <td>-0.026578</td>\n",
              "      <td>-0.019013</td>\n",
              "      <td>-0.024434</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-01</th>\n",
              "      <td>0.006444</td>\n",
              "      <td>-0.117647</td>\n",
              "      <td>-0.017966</td>\n",
              "      <td>-0.017102</td>\n",
              "      <td>-0.005420</td>\n",
              "      <td>-0.037440</td>\n",
              "      <td>-0.002363</td>\n",
              "      <td>0.006088</td>\n",
              "      <td>-0.010185</td>\n",
              "      <td>-0.017415</td>\n",
              "      <td>-0.027938</td>\n",
              "      <td>-0.014604</td>\n",
              "      <td>-0.043567</td>\n",
              "      <td>-0.031157</td>\n",
              "      <td>0.000568</td>\n",
              "      <td>-0.011467</td>\n",
              "      <td>-0.030165</td>\n",
              "      <td>-0.060512</td>\n",
              "      <td>-0.009886</td>\n",
              "      <td>-0.205935</td>\n",
              "      <td>-0.052689</td>\n",
              "      <td>-0.057936</td>\n",
              "      <td>-0.012590</td>\n",
              "      <td>-0.045351</td>\n",
              "      <td>-0.040780</td>\n",
              "      <td>-0.036567</td>\n",
              "      <td>-0.083916</td>\n",
              "      <td>-0.041281</td>\n",
              "      <td>-0.010634</td>\n",
              "      <td>-0.018587</td>\n",
              "      <td>-0.032110</td>\n",
              "      <td>-0.010663</td>\n",
              "      <td>-0.055303</td>\n",
              "      <td>-0.013494</td>\n",
              "      <td>-0.059169</td>\n",
              "      <td>-0.017786</td>\n",
              "      <td>-0.025003</td>\n",
              "      <td>-0.015652</td>\n",
              "      <td>-0.024957</td>\n",
              "      <td>-0.013517</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.067538</td>\n",
              "      <td>-0.008513</td>\n",
              "      <td>-0.016504</td>\n",
              "      <td>-0.003264</td>\n",
              "      <td>-0.060855</td>\n",
              "      <td>-0.005085</td>\n",
              "      <td>-0.013014</td>\n",
              "      <td>-0.027270</td>\n",
              "      <td>-0.018141</td>\n",
              "      <td>-0.032242</td>\n",
              "      <td>-0.027714</td>\n",
              "      <td>-0.045228</td>\n",
              "      <td>-0.017232</td>\n",
              "      <td>-0.014435</td>\n",
              "      <td>-0.074189</td>\n",
              "      <td>-0.021776</td>\n",
              "      <td>-0.023915</td>\n",
              "      <td>0.000994</td>\n",
              "      <td>0.004753</td>\n",
              "      <td>-0.044499</td>\n",
              "      <td>-0.032095</td>\n",
              "      <td>-0.008475</td>\n",
              "      <td>-0.061479</td>\n",
              "      <td>-0.047753</td>\n",
              "      <td>-0.031028</td>\n",
              "      <td>-0.010131</td>\n",
              "      <td>-0.002294</td>\n",
              "      <td>-0.021077</td>\n",
              "      <td>0.002017</td>\n",
              "      <td>-0.018355</td>\n",
              "      <td>-0.041196</td>\n",
              "      <td>-0.030961</td>\n",
              "      <td>-0.029197</td>\n",
              "      <td>-0.003720</td>\n",
              "      <td>-0.026166</td>\n",
              "      <td>-0.010786</td>\n",
              "      <td>-0.021122</td>\n",
              "      <td>-0.022184</td>\n",
              "      <td>-0.015715</td>\n",
              "      <td>-0.070250</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-02</th>\n",
              "      <td>-0.024447</td>\n",
              "      <td>0.042105</td>\n",
              "      <td>-0.000989</td>\n",
              "      <td>-0.000967</td>\n",
              "      <td>-0.008719</td>\n",
              "      <td>-0.003764</td>\n",
              "      <td>-0.002368</td>\n",
              "      <td>0.003782</td>\n",
              "      <td>-0.003215</td>\n",
              "      <td>-0.006996</td>\n",
              "      <td>-0.016423</td>\n",
              "      <td>-0.003120</td>\n",
              "      <td>0.011436</td>\n",
              "      <td>0.002643</td>\n",
              "      <td>-0.014188</td>\n",
              "      <td>-0.009183</td>\n",
              "      <td>-0.004713</td>\n",
              "      <td>0.014038</td>\n",
              "      <td>-0.010590</td>\n",
              "      <td>0.054185</td>\n",
              "      <td>-0.015064</td>\n",
              "      <td>-0.003465</td>\n",
              "      <td>-0.003036</td>\n",
              "      <td>0.016627</td>\n",
              "      <td>0.015425</td>\n",
              "      <td>0.012393</td>\n",
              "      <td>-0.001908</td>\n",
              "      <td>-0.003954</td>\n",
              "      <td>-0.011196</td>\n",
              "      <td>0.002841</td>\n",
              "      <td>0.014218</td>\n",
              "      <td>0.006159</td>\n",
              "      <td>0.000829</td>\n",
              "      <td>0.002042</td>\n",
              "      <td>-0.008475</td>\n",
              "      <td>-0.003695</td>\n",
              "      <td>-0.012885</td>\n",
              "      <td>0.005204</td>\n",
              "      <td>0.035611</td>\n",
              "      <td>0.000548</td>\n",
              "      <td>...</td>\n",
              "      <td>0.000584</td>\n",
              "      <td>-0.009941</td>\n",
              "      <td>0.003305</td>\n",
              "      <td>0.005459</td>\n",
              "      <td>-0.027437</td>\n",
              "      <td>-0.003407</td>\n",
              "      <td>-0.000694</td>\n",
              "      <td>-0.005444</td>\n",
              "      <td>0.006928</td>\n",
              "      <td>-0.006151</td>\n",
              "      <td>-0.015835</td>\n",
              "      <td>-0.011190</td>\n",
              "      <td>-0.009615</td>\n",
              "      <td>-0.027665</td>\n",
              "      <td>-0.002609</td>\n",
              "      <td>-0.007420</td>\n",
              "      <td>0.005698</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.006914</td>\n",
              "      <td>0.018542</td>\n",
              "      <td>-0.015276</td>\n",
              "      <td>-0.005917</td>\n",
              "      <td>-0.002073</td>\n",
              "      <td>-0.004425</td>\n",
              "      <td>-0.017744</td>\n",
              "      <td>-0.005537</td>\n",
              "      <td>-0.012414</td>\n",
              "      <td>0.003589</td>\n",
              "      <td>-0.001006</td>\n",
              "      <td>0.006731</td>\n",
              "      <td>0.006084</td>\n",
              "      <td>0.004484</td>\n",
              "      <td>-0.023392</td>\n",
              "      <td>-0.008215</td>\n",
              "      <td>-0.014603</td>\n",
              "      <td>-0.003370</td>\n",
              "      <td>-0.003543</td>\n",
              "      <td>-0.013962</td>\n",
              "      <td>-0.010644</td>\n",
              "      <td>-0.009198</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-03</th>\n",
              "      <td>0.002983</td>\n",
              "      <td>0.040404</td>\n",
              "      <td>0.002970</td>\n",
              "      <td>0.008224</td>\n",
              "      <td>0.006047</td>\n",
              "      <td>-0.013854</td>\n",
              "      <td>0.001187</td>\n",
              "      <td>0.032404</td>\n",
              "      <td>0.015806</td>\n",
              "      <td>0.021606</td>\n",
              "      <td>0.016698</td>\n",
              "      <td>0.003912</td>\n",
              "      <td>0.013798</td>\n",
              "      <td>-0.008787</td>\n",
              "      <td>0.009211</td>\n",
              "      <td>0.000488</td>\n",
              "      <td>0.006629</td>\n",
              "      <td>0.004886</td>\n",
              "      <td>-0.003058</td>\n",
              "      <td>0.100319</td>\n",
              "      <td>0.025882</td>\n",
              "      <td>0.003911</td>\n",
              "      <td>0.001827</td>\n",
              "      <td>0.011098</td>\n",
              "      <td>0.014079</td>\n",
              "      <td>-0.001530</td>\n",
              "      <td>0.022945</td>\n",
              "      <td>0.014998</td>\n",
              "      <td>0.008152</td>\n",
              "      <td>0.013220</td>\n",
              "      <td>0.058411</td>\n",
              "      <td>0.001530</td>\n",
              "      <td>0.029826</td>\n",
              "      <td>-0.010595</td>\n",
              "      <td>0.031939</td>\n",
              "      <td>0.032641</td>\n",
              "      <td>0.004095</td>\n",
              "      <td>0.004602</td>\n",
              "      <td>0.003439</td>\n",
              "      <td>0.006847</td>\n",
              "      <td>...</td>\n",
              "      <td>0.029189</td>\n",
              "      <td>0.022821</td>\n",
              "      <td>0.001521</td>\n",
              "      <td>0.007600</td>\n",
              "      <td>0.013806</td>\n",
              "      <td>0.013462</td>\n",
              "      <td>0.011111</td>\n",
              "      <td>0.010947</td>\n",
              "      <td>0.038991</td>\n",
              "      <td>0.008252</td>\n",
              "      <td>0.010459</td>\n",
              "      <td>-0.000754</td>\n",
              "      <td>0.003998</td>\n",
              "      <td>0.002789</td>\n",
              "      <td>0.011211</td>\n",
              "      <td>0.003450</td>\n",
              "      <td>0.012465</td>\n",
              "      <td>0.000199</td>\n",
              "      <td>-0.007695</td>\n",
              "      <td>0.011854</td>\n",
              "      <td>0.012864</td>\n",
              "      <td>-0.000661</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.031111</td>\n",
              "      <td>0.018065</td>\n",
              "      <td>0.013835</td>\n",
              "      <td>0.019553</td>\n",
              "      <td>0.014303</td>\n",
              "      <td>0.016117</td>\n",
              "      <td>0.023774</td>\n",
              "      <td>0.018896</td>\n",
              "      <td>0.013951</td>\n",
              "      <td>-0.002281</td>\n",
              "      <td>0.005271</td>\n",
              "      <td>0.005335</td>\n",
              "      <td>0.001194</td>\n",
              "      <td>0.003878</td>\n",
              "      <td>0.010619</td>\n",
              "      <td>0.006455</td>\n",
              "      <td>0.006631</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-04</th>\n",
              "      <td>0.022606</td>\n",
              "      <td>0.038835</td>\n",
              "      <td>-0.010116</td>\n",
              "      <td>0.022553</td>\n",
              "      <td>0.007104</td>\n",
              "      <td>0.001277</td>\n",
              "      <td>0.012448</td>\n",
              "      <td>0.008029</td>\n",
              "      <td>0.017783</td>\n",
              "      <td>0.022989</td>\n",
              "      <td>0.031478</td>\n",
              "      <td>0.019875</td>\n",
              "      <td>0.022306</td>\n",
              "      <td>0.024823</td>\n",
              "      <td>0.001711</td>\n",
              "      <td>0.005851</td>\n",
              "      <td>0.016933</td>\n",
              "      <td>-0.017018</td>\n",
              "      <td>0.009816</td>\n",
              "      <td>-0.040915</td>\n",
              "      <td>-0.002294</td>\n",
              "      <td>0.008658</td>\n",
              "      <td>0.008511</td>\n",
              "      <td>0.009243</td>\n",
              "      <td>0.015345</td>\n",
              "      <td>0.002299</td>\n",
              "      <td>0.041121</td>\n",
              "      <td>0.012603</td>\n",
              "      <td>0.032345</td>\n",
              "      <td>0.023299</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.013751</td>\n",
              "      <td>0.026227</td>\n",
              "      <td>0.008237</td>\n",
              "      <td>0.003051</td>\n",
              "      <td>0.043463</td>\n",
              "      <td>0.005226</td>\n",
              "      <td>0.021472</td>\n",
              "      <td>0.011566</td>\n",
              "      <td>0.009521</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.005105</td>\n",
              "      <td>0.033467</td>\n",
              "      <td>0.018472</td>\n",
              "      <td>0.004310</td>\n",
              "      <td>0.024275</td>\n",
              "      <td>0.014759</td>\n",
              "      <td>-0.007555</td>\n",
              "      <td>0.018408</td>\n",
              "      <td>0.006623</td>\n",
              "      <td>0.036317</td>\n",
              "      <td>0.012739</td>\n",
              "      <td>0.014345</td>\n",
              "      <td>0.011945</td>\n",
              "      <td>0.010292</td>\n",
              "      <td>0.011086</td>\n",
              "      <td>0.012034</td>\n",
              "      <td>0.015109</td>\n",
              "      <td>0.008343</td>\n",
              "      <td>0.008863</td>\n",
              "      <td>0.015481</td>\n",
              "      <td>0.025402</td>\n",
              "      <td>0.001324</td>\n",
              "      <td>0.003739</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.029574</td>\n",
              "      <td>0.015976</td>\n",
              "      <td>0.010502</td>\n",
              "      <td>0.022327</td>\n",
              "      <td>-0.001239</td>\n",
              "      <td>-0.003628</td>\n",
              "      <td>0.009273</td>\n",
              "      <td>0.058613</td>\n",
              "      <td>0.017434</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.035377</td>\n",
              "      <td>0.013511</td>\n",
              "      <td>0.013522</td>\n",
              "      <td>0.025102</td>\n",
              "      <td>0.013896</td>\n",
              "      <td>0.021080</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-08</th>\n",
              "      <td>0.020942</td>\n",
              "      <td>0.012461</td>\n",
              "      <td>0.007228</td>\n",
              "      <td>0.015486</td>\n",
              "      <td>-0.005426</td>\n",
              "      <td>-0.003827</td>\n",
              "      <td>0.006440</td>\n",
              "      <td>-0.005431</td>\n",
              "      <td>0.014353</td>\n",
              "      <td>0.017079</td>\n",
              "      <td>-0.005750</td>\n",
              "      <td>0.004585</td>\n",
              "      <td>0.004623</td>\n",
              "      <td>-0.013408</td>\n",
              "      <td>-0.006834</td>\n",
              "      <td>-0.003878</td>\n",
              "      <td>0.021277</td>\n",
              "      <td>0.028030</td>\n",
              "      <td>-0.000304</td>\n",
              "      <td>-0.104803</td>\n",
              "      <td>0.058621</td>\n",
              "      <td>0.021459</td>\n",
              "      <td>-0.004822</td>\n",
              "      <td>-0.008586</td>\n",
              "      <td>0.031666</td>\n",
              "      <td>0.006116</td>\n",
              "      <td>0.007181</td>\n",
              "      <td>-0.000429</td>\n",
              "      <td>0.001741</td>\n",
              "      <td>0.017304</td>\n",
              "      <td>0.145695</td>\n",
              "      <td>0.018086</td>\n",
              "      <td>0.026654</td>\n",
              "      <td>0.003472</td>\n",
              "      <td>0.019557</td>\n",
              "      <td>0.027194</td>\n",
              "      <td>0.025739</td>\n",
              "      <td>0.002803</td>\n",
              "      <td>-0.042981</td>\n",
              "      <td>0.001078</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.000570</td>\n",
              "      <td>-0.006045</td>\n",
              "      <td>0.005466</td>\n",
              "      <td>0.049356</td>\n",
              "      <td>-0.021387</td>\n",
              "      <td>-0.002493</td>\n",
              "      <td>0.008304</td>\n",
              "      <td>-0.002924</td>\n",
              "      <td>0.003289</td>\n",
              "      <td>0.002468</td>\n",
              "      <td>0.021226</td>\n",
              "      <td>0.043171</td>\n",
              "      <td>0.014053</td>\n",
              "      <td>0.010738</td>\n",
              "      <td>0.029240</td>\n",
              "      <td>0.011325</td>\n",
              "      <td>0.025910</td>\n",
              "      <td>0.021868</td>\n",
              "      <td>0.004026</td>\n",
              "      <td>-0.002472</td>\n",
              "      <td>0.030965</td>\n",
              "      <td>0.005948</td>\n",
              "      <td>0.015315</td>\n",
              "      <td>0.002874</td>\n",
              "      <td>0.004160</td>\n",
              "      <td>0.011466</td>\n",
              "      <td>0.007682</td>\n",
              "      <td>0.032184</td>\n",
              "      <td>-0.005459</td>\n",
              "      <td>0.000728</td>\n",
              "      <td>-0.012128</td>\n",
              "      <td>0.015337</td>\n",
              "      <td>0.032865</td>\n",
              "      <td>-0.003745</td>\n",
              "      <td>0.042711</td>\n",
              "      <td>0.021172</td>\n",
              "      <td>0.000953</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.004744</td>\n",
              "      <td>-0.040000</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-09</th>\n",
              "      <td>0.027920</td>\n",
              "      <td>0.046154</td>\n",
              "      <td>0.001237</td>\n",
              "      <td>-0.010166</td>\n",
              "      <td>0.012002</td>\n",
              "      <td>0.039693</td>\n",
              "      <td>0.009889</td>\n",
              "      <td>0.007281</td>\n",
              "      <td>0.008920</td>\n",
              "      <td>-0.000442</td>\n",
              "      <td>-0.001335</td>\n",
              "      <td>0.000761</td>\n",
              "      <td>0.050617</td>\n",
              "      <td>0.004384</td>\n",
              "      <td>-0.008601</td>\n",
              "      <td>0.000973</td>\n",
              "      <td>0.022645</td>\n",
              "      <td>0.016038</td>\n",
              "      <td>0.039806</td>\n",
              "      <td>0.084803</td>\n",
              "      <td>0.030402</td>\n",
              "      <td>0.005042</td>\n",
              "      <td>0.012114</td>\n",
              "      <td>0.027136</td>\n",
              "      <td>0.026509</td>\n",
              "      <td>0.013678</td>\n",
              "      <td>0.035651</td>\n",
              "      <td>-0.001717</td>\n",
              "      <td>-0.013901</td>\n",
              "      <td>0.016115</td>\n",
              "      <td>0.001927</td>\n",
              "      <td>0.031828</td>\n",
              "      <td>0.012065</td>\n",
              "      <td>0.000407</td>\n",
              "      <td>0.017903</td>\n",
              "      <td>-0.000335</td>\n",
              "      <td>0.016564</td>\n",
              "      <td>0.011738</td>\n",
              "      <td>0.019248</td>\n",
              "      <td>0.021803</td>\n",
              "      <td>...</td>\n",
              "      <td>0.017684</td>\n",
              "      <td>0.009123</td>\n",
              "      <td>0.024463</td>\n",
              "      <td>0.034765</td>\n",
              "      <td>0.036031</td>\n",
              "      <td>0.014372</td>\n",
              "      <td>-0.006177</td>\n",
              "      <td>0.018928</td>\n",
              "      <td>0.010929</td>\n",
              "      <td>0.017725</td>\n",
              "      <td>-0.017706</td>\n",
              "      <td>0.032108</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.005721</td>\n",
              "      <td>0.004616</td>\n",
              "      <td>-0.002240</td>\n",
              "      <td>-0.011284</td>\n",
              "      <td>0.028340</td>\n",
              "      <td>-0.002552</td>\n",
              "      <td>0.038001</td>\n",
              "      <td>0.006360</td>\n",
              "      <td>-0.001971</td>\n",
              "      <td>0.015491</td>\n",
              "      <td>0.025788</td>\n",
              "      <td>0.037285</td>\n",
              "      <td>0.011984</td>\n",
              "      <td>-0.014350</td>\n",
              "      <td>-0.010022</td>\n",
              "      <td>-0.005489</td>\n",
              "      <td>0.014556</td>\n",
              "      <td>0.003720</td>\n",
              "      <td>0.064004</td>\n",
              "      <td>0.009247</td>\n",
              "      <td>-0.006015</td>\n",
              "      <td>0.010923</td>\n",
              "      <td>-0.002112</td>\n",
              "      <td>0.011108</td>\n",
              "      <td>0.025057</td>\n",
              "      <td>-0.017314</td>\n",
              "      <td>0.006720</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-10</th>\n",
              "      <td>0.026053</td>\n",
              "      <td>0.123529</td>\n",
              "      <td>-0.022739</td>\n",
              "      <td>0.008403</td>\n",
              "      <td>0.004852</td>\n",
              "      <td>-0.008621</td>\n",
              "      <td>0.010945</td>\n",
              "      <td>0.011203</td>\n",
              "      <td>0.037195</td>\n",
              "      <td>0.003979</td>\n",
              "      <td>0.010690</td>\n",
              "      <td>-0.003421</td>\n",
              "      <td>0.003504</td>\n",
              "      <td>0.037975</td>\n",
              "      <td>-0.028918</td>\n",
              "      <td>-0.006806</td>\n",
              "      <td>0.002657</td>\n",
              "      <td>0.009471</td>\n",
              "      <td>0.003214</td>\n",
              "      <td>-0.026634</td>\n",
              "      <td>0.053741</td>\n",
              "      <td>0.012542</td>\n",
              "      <td>0.007780</td>\n",
              "      <td>0.017988</td>\n",
              "      <td>-0.001019</td>\n",
              "      <td>0.008246</td>\n",
              "      <td>0.051635</td>\n",
              "      <td>0.015484</td>\n",
              "      <td>-0.011894</td>\n",
              "      <td>-0.019383</td>\n",
              "      <td>0.034615</td>\n",
              "      <td>0.031564</td>\n",
              "      <td>0.000754</td>\n",
              "      <td>-0.002442</td>\n",
              "      <td>0.030151</td>\n",
              "      <td>0.020114</td>\n",
              "      <td>0.019577</td>\n",
              "      <td>0.024033</td>\n",
              "      <td>0.025396</td>\n",
              "      <td>-0.017387</td>\n",
              "      <td>...</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.021093</td>\n",
              "      <td>0.015678</td>\n",
              "      <td>-0.022727</td>\n",
              "      <td>-0.001140</td>\n",
              "      <td>0.011499</td>\n",
              "      <td>0.025552</td>\n",
              "      <td>-0.000523</td>\n",
              "      <td>0.011892</td>\n",
              "      <td>0.032898</td>\n",
              "      <td>0.018025</td>\n",
              "      <td>0.014863</td>\n",
              "      <td>0.034368</td>\n",
              "      <td>-0.023835</td>\n",
              "      <td>-0.002828</td>\n",
              "      <td>0.015152</td>\n",
              "      <td>0.012500</td>\n",
              "      <td>0.020997</td>\n",
              "      <td>0.008772</td>\n",
              "      <td>0.037008</td>\n",
              "      <td>0.015449</td>\n",
              "      <td>-0.005267</td>\n",
              "      <td>-0.006022</td>\n",
              "      <td>0.006518</td>\n",
              "      <td>0.008939</td>\n",
              "      <td>0.013122</td>\n",
              "      <td>0.006824</td>\n",
              "      <td>0.031496</td>\n",
              "      <td>-0.001756</td>\n",
              "      <td>0.005739</td>\n",
              "      <td>0.006301</td>\n",
              "      <td>0.017324</td>\n",
              "      <td>0.036109</td>\n",
              "      <td>0.001513</td>\n",
              "      <td>0.007563</td>\n",
              "      <td>0.002116</td>\n",
              "      <td>0.013810</td>\n",
              "      <td>0.057778</td>\n",
              "      <td>-0.002136</td>\n",
              "      <td>-0.014686</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-11</th>\n",
              "      <td>0.007023</td>\n",
              "      <td>0.002618</td>\n",
              "      <td>-0.035913</td>\n",
              "      <td>-0.002315</td>\n",
              "      <td>0.005901</td>\n",
              "      <td>-0.008696</td>\n",
              "      <td>-0.001140</td>\n",
              "      <td>0.016083</td>\n",
              "      <td>0.018519</td>\n",
              "      <td>-0.034346</td>\n",
              "      <td>0.000441</td>\n",
              "      <td>0.002288</td>\n",
              "      <td>-0.002968</td>\n",
              "      <td>0.017241</td>\n",
              "      <td>0.004169</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.000883</td>\n",
              "      <td>0.014073</td>\n",
              "      <td>0.003495</td>\n",
              "      <td>-0.008173</td>\n",
              "      <td>-0.022000</td>\n",
              "      <td>0.004955</td>\n",
              "      <td>-0.005344</td>\n",
              "      <td>0.014357</td>\n",
              "      <td>-0.008503</td>\n",
              "      <td>0.012639</td>\n",
              "      <td>-0.014730</td>\n",
              "      <td>-0.010589</td>\n",
              "      <td>0.016496</td>\n",
              "      <td>-0.008985</td>\n",
              "      <td>0.055762</td>\n",
              "      <td>0.011822</td>\n",
              "      <td>-0.020657</td>\n",
              "      <td>-0.008362</td>\n",
              "      <td>-0.024390</td>\n",
              "      <td>0.013474</td>\n",
              "      <td>0.008229</td>\n",
              "      <td>0.015376</td>\n",
              "      <td>-0.002752</td>\n",
              "      <td>-0.015550</td>\n",
              "      <td>...</td>\n",
              "      <td>0.001682</td>\n",
              "      <td>-0.015599</td>\n",
              "      <td>0.044408</td>\n",
              "      <td>0.027300</td>\n",
              "      <td>0.006279</td>\n",
              "      <td>0.000609</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.004188</td>\n",
              "      <td>0.003205</td>\n",
              "      <td>-0.018267</td>\n",
              "      <td>0.010008</td>\n",
              "      <td>-0.002044</td>\n",
              "      <td>0.031083</td>\n",
              "      <td>-0.003330</td>\n",
              "      <td>-0.005672</td>\n",
              "      <td>-0.002764</td>\n",
              "      <td>0.005368</td>\n",
              "      <td>0.002754</td>\n",
              "      <td>-0.003261</td>\n",
              "      <td>0.006523</td>\n",
              "      <td>-0.018672</td>\n",
              "      <td>-0.003971</td>\n",
              "      <td>0.003231</td>\n",
              "      <td>-0.015264</td>\n",
              "      <td>-0.021112</td>\n",
              "      <td>0.011531</td>\n",
              "      <td>0.010845</td>\n",
              "      <td>0.030534</td>\n",
              "      <td>-0.006032</td>\n",
              "      <td>0.016405</td>\n",
              "      <td>0.007735</td>\n",
              "      <td>0.037843</td>\n",
              "      <td>-0.013524</td>\n",
              "      <td>0.000755</td>\n",
              "      <td>-0.014477</td>\n",
              "      <td>-0.009407</td>\n",
              "      <td>-0.003406</td>\n",
              "      <td>-0.021534</td>\n",
              "      <td>-0.003745</td>\n",
              "      <td>-0.002710</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-14</th>\n",
              "      <td>0.001609</td>\n",
              "      <td>0.023499</td>\n",
              "      <td>0.013379</td>\n",
              "      <td>0.008817</td>\n",
              "      <td>0.003733</td>\n",
              "      <td>0.021303</td>\n",
              "      <td>0.010839</td>\n",
              "      <td>0.002814</td>\n",
              "      <td>0.015584</td>\n",
              "      <td>0.010488</td>\n",
              "      <td>-0.012775</td>\n",
              "      <td>-0.000381</td>\n",
              "      <td>-0.003677</td>\n",
              "      <td>-0.011162</td>\n",
              "      <td>0.007711</td>\n",
              "      <td>0.016642</td>\n",
              "      <td>0.045013</td>\n",
              "      <td>0.022359</td>\n",
              "      <td>-0.005225</td>\n",
              "      <td>0.094948</td>\n",
              "      <td>0.037832</td>\n",
              "      <td>0.018899</td>\n",
              "      <td>0.013134</td>\n",
              "      <td>0.006532</td>\n",
              "      <td>0.010635</td>\n",
              "      <td>0.007342</td>\n",
              "      <td>-0.013289</td>\n",
              "      <td>0.002568</td>\n",
              "      <td>0.004825</td>\n",
              "      <td>-0.015413</td>\n",
              "      <td>0.007042</td>\n",
              "      <td>-0.004811</td>\n",
              "      <td>0.002617</td>\n",
              "      <td>0.011518</td>\n",
              "      <td>0.045833</td>\n",
              "      <td>-0.017834</td>\n",
              "      <td>-0.008044</td>\n",
              "      <td>0.011690</td>\n",
              "      <td>0.001698</td>\n",
              "      <td>0.010076</td>\n",
              "      <td>...</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.003426</td>\n",
              "      <td>0.006821</td>\n",
              "      <td>0.063976</td>\n",
              "      <td>0.005105</td>\n",
              "      <td>-0.006898</td>\n",
              "      <td>0.008081</td>\n",
              "      <td>0.008603</td>\n",
              "      <td>0.013845</td>\n",
              "      <td>0.024809</td>\n",
              "      <td>0.007622</td>\n",
              "      <td>0.038908</td>\n",
              "      <td>-0.009356</td>\n",
              "      <td>0.027283</td>\n",
              "      <td>0.015330</td>\n",
              "      <td>-0.006098</td>\n",
              "      <td>0.002136</td>\n",
              "      <td>-0.003845</td>\n",
              "      <td>0.004726</td>\n",
              "      <td>0.003431</td>\n",
              "      <td>0.003876</td>\n",
              "      <td>0.009967</td>\n",
              "      <td>0.016908</td>\n",
              "      <td>0.017849</td>\n",
              "      <td>0.016561</td>\n",
              "      <td>0.013741</td>\n",
              "      <td>0.008494</td>\n",
              "      <td>0.005291</td>\n",
              "      <td>-0.006574</td>\n",
              "      <td>0.009825</td>\n",
              "      <td>0.061769</td>\n",
              "      <td>0.071331</td>\n",
              "      <td>0.017137</td>\n",
              "      <td>0.009057</td>\n",
              "      <td>0.003808</td>\n",
              "      <td>0.000194</td>\n",
              "      <td>0.004039</td>\n",
              "      <td>-0.001074</td>\n",
              "      <td>0.001611</td>\n",
              "      <td>0.029212</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-15</th>\n",
              "      <td>0.008034</td>\n",
              "      <td>0.066327</td>\n",
              "      <td>-0.016309</td>\n",
              "      <td>0.008280</td>\n",
              "      <td>-0.008502</td>\n",
              "      <td>0.015951</td>\n",
              "      <td>-0.005079</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.012219</td>\n",
              "      <td>-0.004513</td>\n",
              "      <td>0.017849</td>\n",
              "      <td>0.007613</td>\n",
              "      <td>0.024780</td>\n",
              "      <td>-0.017977</td>\n",
              "      <td>0.013537</td>\n",
              "      <td>0.011074</td>\n",
              "      <td>-0.005068</td>\n",
              "      <td>-0.003771</td>\n",
              "      <td>-0.017800</td>\n",
              "      <td>-0.056283</td>\n",
              "      <td>0.047291</td>\n",
              "      <td>0.011290</td>\n",
              "      <td>-0.002946</td>\n",
              "      <td>-0.001622</td>\n",
              "      <td>0.016972</td>\n",
              "      <td>-0.008017</td>\n",
              "      <td>0.040404</td>\n",
              "      <td>-0.003843</td>\n",
              "      <td>-0.008293</td>\n",
              "      <td>0.003683</td>\n",
              "      <td>0.027972</td>\n",
              "      <td>0.008287</td>\n",
              "      <td>0.005682</td>\n",
              "      <td>-0.012403</td>\n",
              "      <td>0.002789</td>\n",
              "      <td>0.018818</td>\n",
              "      <td>-0.003697</td>\n",
              "      <td>-0.008666</td>\n",
              "      <td>-0.017800</td>\n",
              "      <td>-0.007010</td>\n",
              "      <td>...</td>\n",
              "      <td>0.002798</td>\n",
              "      <td>0.013231</td>\n",
              "      <td>0.001581</td>\n",
              "      <td>-0.023127</td>\n",
              "      <td>0.009029</td>\n",
              "      <td>-0.004290</td>\n",
              "      <td>0.004008</td>\n",
              "      <td>-0.006720</td>\n",
              "      <td>-0.003151</td>\n",
              "      <td>0.034916</td>\n",
              "      <td>-0.010590</td>\n",
              "      <td>0.021025</td>\n",
              "      <td>0.008395</td>\n",
              "      <td>0.002168</td>\n",
              "      <td>0.005618</td>\n",
              "      <td>-0.002231</td>\n",
              "      <td>0.004262</td>\n",
              "      <td>-0.013971</td>\n",
              "      <td>-0.005427</td>\n",
              "      <td>0.008739</td>\n",
              "      <td>0.034749</td>\n",
              "      <td>0.009868</td>\n",
              "      <td>0.014648</td>\n",
              "      <td>0.023535</td>\n",
              "      <td>0.021216</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.018174</td>\n",
              "      <td>0.023158</td>\n",
              "      <td>-0.008908</td>\n",
              "      <td>-0.015983</td>\n",
              "      <td>-0.005508</td>\n",
              "      <td>0.048713</td>\n",
              "      <td>0.019181</td>\n",
              "      <td>0.015707</td>\n",
              "      <td>0.001084</td>\n",
              "      <td>-0.007169</td>\n",
              "      <td>0.006498</td>\n",
              "      <td>0.043525</td>\n",
              "      <td>0.004826</td>\n",
              "      <td>0.107591</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-16</th>\n",
              "      <td>0.011158</td>\n",
              "      <td>-0.004785</td>\n",
              "      <td>-0.006316</td>\n",
              "      <td>0.038321</td>\n",
              "      <td>0.009646</td>\n",
              "      <td>0.078502</td>\n",
              "      <td>-0.007941</td>\n",
              "      <td>0.017888</td>\n",
              "      <td>-0.063728</td>\n",
              "      <td>-0.031278</td>\n",
              "      <td>0.008768</td>\n",
              "      <td>0.017000</td>\n",
              "      <td>0.045275</td>\n",
              "      <td>0.024691</td>\n",
              "      <td>0.005807</td>\n",
              "      <td>0.009048</td>\n",
              "      <td>0.018676</td>\n",
              "      <td>0.034065</td>\n",
              "      <td>0.006536</td>\n",
              "      <td>0.039182</td>\n",
              "      <td>0.088429</td>\n",
              "      <td>0.015949</td>\n",
              "      <td>0.018913</td>\n",
              "      <td>0.026544</td>\n",
              "      <td>0.011682</td>\n",
              "      <td>-0.005878</td>\n",
              "      <td>-0.003236</td>\n",
              "      <td>0.033005</td>\n",
              "      <td>0.014525</td>\n",
              "      <td>0.002752</td>\n",
              "      <td>-0.032313</td>\n",
              "      <td>0.007534</td>\n",
              "      <td>0.008551</td>\n",
              "      <td>0.020589</td>\n",
              "      <td>0.042114</td>\n",
              "      <td>0.009073</td>\n",
              "      <td>0.085577</td>\n",
              "      <td>0.015629</td>\n",
              "      <td>0.031931</td>\n",
              "      <td>0.020635</td>\n",
              "      <td>...</td>\n",
              "      <td>0.041295</td>\n",
              "      <td>-0.006318</td>\n",
              "      <td>-0.001578</td>\n",
              "      <td>0.037879</td>\n",
              "      <td>0.029083</td>\n",
              "      <td>0.010669</td>\n",
              "      <td>0.012641</td>\n",
              "      <td>0.001301</td>\n",
              "      <td>0.011591</td>\n",
              "      <td>0.017994</td>\n",
              "      <td>0.019113</td>\n",
              "      <td>0.062420</td>\n",
              "      <td>0.032258</td>\n",
              "      <td>0.005949</td>\n",
              "      <td>0.016061</td>\n",
              "      <td>-0.019005</td>\n",
              "      <td>0.016446</td>\n",
              "      <td>0.021812</td>\n",
              "      <td>0.016370</td>\n",
              "      <td>0.025235</td>\n",
              "      <td>0.011194</td>\n",
              "      <td>0.002606</td>\n",
              "      <td>0.020289</td>\n",
              "      <td>0.028855</td>\n",
              "      <td>0.056390</td>\n",
              "      <td>0.021565</td>\n",
              "      <td>0.001354</td>\n",
              "      <td>0.005144</td>\n",
              "      <td>0.002054</td>\n",
              "      <td>0.024011</td>\n",
              "      <td>0.012461</td>\n",
              "      <td>-0.049087</td>\n",
              "      <td>0.038403</td>\n",
              "      <td>0.013255</td>\n",
              "      <td>-0.024905</td>\n",
              "      <td>0.012295</td>\n",
              "      <td>0.006456</td>\n",
              "      <td>0.001545</td>\n",
              "      <td>0.011740</td>\n",
              "      <td>0.065554</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-17</th>\n",
              "      <td>-0.005255</td>\n",
              "      <td>0.170673</td>\n",
              "      <td>-0.001854</td>\n",
              "      <td>0.014938</td>\n",
              "      <td>-0.009023</td>\n",
              "      <td>0.030235</td>\n",
              "      <td>-0.007433</td>\n",
              "      <td>-0.005169</td>\n",
              "      <td>-0.015292</td>\n",
              "      <td>-0.007019</td>\n",
              "      <td>-0.023468</td>\n",
              "      <td>-0.001486</td>\n",
              "      <td>0.015094</td>\n",
              "      <td>-0.021188</td>\n",
              "      <td>-0.007506</td>\n",
              "      <td>-0.006135</td>\n",
              "      <td>-0.042500</td>\n",
              "      <td>-0.008053</td>\n",
              "      <td>0.006494</td>\n",
              "      <td>-0.022022</td>\n",
              "      <td>-0.043215</td>\n",
              "      <td>0.001177</td>\n",
              "      <td>-0.012181</td>\n",
              "      <td>-0.012665</td>\n",
              "      <td>-0.014517</td>\n",
              "      <td>-0.001478</td>\n",
              "      <td>-0.017857</td>\n",
              "      <td>0.016598</td>\n",
              "      <td>0.007809</td>\n",
              "      <td>-0.026532</td>\n",
              "      <td>-0.003515</td>\n",
              "      <td>0.012916</td>\n",
              "      <td>0.001514</td>\n",
              "      <td>0.013920</td>\n",
              "      <td>-0.012962</td>\n",
              "      <td>0.025369</td>\n",
              "      <td>-0.002867</td>\n",
              "      <td>0.002869</td>\n",
              "      <td>-0.006899</td>\n",
              "      <td>-0.015430</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.017685</td>\n",
              "      <td>-0.013565</td>\n",
              "      <td>-0.006098</td>\n",
              "      <td>-0.001825</td>\n",
              "      <td>-0.016304</td>\n",
              "      <td>0.009338</td>\n",
              "      <td>-0.003942</td>\n",
              "      <td>-0.006237</td>\n",
              "      <td>-0.003125</td>\n",
              "      <td>0.009722</td>\n",
              "      <td>0.066017</td>\n",
              "      <td>0.004846</td>\n",
              "      <td>0.008065</td>\n",
              "      <td>0.020161</td>\n",
              "      <td>-0.008935</td>\n",
              "      <td>-0.029630</td>\n",
              "      <td>-0.016180</td>\n",
              "      <td>0.014231</td>\n",
              "      <td>-0.008590</td>\n",
              "      <td>-0.019104</td>\n",
              "      <td>-0.007045</td>\n",
              "      <td>-0.001949</td>\n",
              "      <td>-0.003824</td>\n",
              "      <td>-0.021034</td>\n",
              "      <td>-0.006673</td>\n",
              "      <td>-0.011610</td>\n",
              "      <td>-0.004058</td>\n",
              "      <td>-0.013306</td>\n",
              "      <td>-0.001538</td>\n",
              "      <td>0.014483</td>\n",
              "      <td>-0.029402</td>\n",
              "      <td>0.004053</td>\n",
              "      <td>-0.003674</td>\n",
              "      <td>-0.003634</td>\n",
              "      <td>-0.024431</td>\n",
              "      <td>-0.007133</td>\n",
              "      <td>-0.006414</td>\n",
              "      <td>-0.006684</td>\n",
              "      <td>0.005274</td>\n",
              "      <td>-0.053691</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-18</th>\n",
              "      <td>-0.004226</td>\n",
              "      <td>-0.028747</td>\n",
              "      <td>0.014858</td>\n",
              "      <td>0.002165</td>\n",
              "      <td>0.009106</td>\n",
              "      <td>-0.036957</td>\n",
              "      <td>-0.008641</td>\n",
              "      <td>-0.011431</td>\n",
              "      <td>0.003350</td>\n",
              "      <td>-0.007069</td>\n",
              "      <td>0.013796</td>\n",
              "      <td>0.002976</td>\n",
              "      <td>0.003556</td>\n",
              "      <td>-0.000849</td>\n",
              "      <td>0.004072</td>\n",
              "      <td>0.013770</td>\n",
              "      <td>0.002611</td>\n",
              "      <td>0.001476</td>\n",
              "      <td>0.020821</td>\n",
              "      <td>0.012282</td>\n",
              "      <td>0.012647</td>\n",
              "      <td>0.025872</td>\n",
              "      <td>-0.008221</td>\n",
              "      <td>0.003207</td>\n",
              "      <td>-0.002678</td>\n",
              "      <td>0.012583</td>\n",
              "      <td>-0.009917</td>\n",
              "      <td>0.010204</td>\n",
              "      <td>-0.012484</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.005291</td>\n",
              "      <td>-0.004698</td>\n",
              "      <td>0.017234</td>\n",
              "      <td>0.004775</td>\n",
              "      <td>0.003862</td>\n",
              "      <td>0.025681</td>\n",
              "      <td>-0.001769</td>\n",
              "      <td>0.002341</td>\n",
              "      <td>-0.001474</td>\n",
              "      <td>-0.001621</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.001091</td>\n",
              "      <td>0.000859</td>\n",
              "      <td>-0.001136</td>\n",
              "      <td>-0.000914</td>\n",
              "      <td>0.013812</td>\n",
              "      <td>0.004626</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.009153</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.006565</td>\n",
              "      <td>-0.014075</td>\n",
              "      <td>0.002712</td>\n",
              "      <td>-0.012500</td>\n",
              "      <td>-0.010540</td>\n",
              "      <td>0.010055</td>\n",
              "      <td>0.002349</td>\n",
              "      <td>-0.001592</td>\n",
              "      <td>-0.004857</td>\n",
              "      <td>0.005415</td>\n",
              "      <td>-0.003371</td>\n",
              "      <td>-0.010135</td>\n",
              "      <td>-0.005859</td>\n",
              "      <td>0.003455</td>\n",
              "      <td>-0.010295</td>\n",
              "      <td>0.017324</td>\n",
              "      <td>0.002593</td>\n",
              "      <td>0.023993</td>\n",
              "      <td>-0.010373</td>\n",
              "      <td>0.003080</td>\n",
              "      <td>0.004079</td>\n",
              "      <td>0.024657</td>\n",
              "      <td>-0.000425</td>\n",
              "      <td>-0.011308</td>\n",
              "      <td>-0.005835</td>\n",
              "      <td>0.026181</td>\n",
              "      <td>0.002136</td>\n",
              "      <td>0.002152</td>\n",
              "      <td>-0.003106</td>\n",
              "      <td>0.015740</td>\n",
              "      <td>0.007092</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2009-09-21</th>\n",
              "      <td>0.015915</td>\n",
              "      <td>0.088795</td>\n",
              "      <td>0.021176</td>\n",
              "      <td>-0.005184</td>\n",
              "      <td>0.008493</td>\n",
              "      <td>0.047404</td>\n",
              "      <td>0.012202</td>\n",
              "      <td>0.005957</td>\n",
              "      <td>-0.003035</td>\n",
              "      <td>-0.002848</td>\n",
              "      <td>-0.009219</td>\n",
              "      <td>-0.005193</td>\n",
              "      <td>-0.012885</td>\n",
              "      <td>0.022515</td>\n",
              "      <td>-0.009849</td>\n",
              "      <td>-0.003747</td>\n",
              "      <td>0.016493</td>\n",
              "      <td>-0.011054</td>\n",
              "      <td>-0.010342</td>\n",
              "      <td>0.212673</td>\n",
              "      <td>-0.030330</td>\n",
              "      <td>-0.006496</td>\n",
              "      <td>0.002960</td>\n",
              "      <td>0.023442</td>\n",
              "      <td>0.007049</td>\n",
              "      <td>0.025585</td>\n",
              "      <td>0.021703</td>\n",
              "      <td>-0.011313</td>\n",
              "      <td>0.017001</td>\n",
              "      <td>-0.029135</td>\n",
              "      <td>0.019298</td>\n",
              "      <td>-0.002697</td>\n",
              "      <td>-0.021549</td>\n",
              "      <td>0.024752</td>\n",
              "      <td>-0.014621</td>\n",
              "      <td>-0.006718</td>\n",
              "      <td>0.003101</td>\n",
              "      <td>-0.008563</td>\n",
              "      <td>0.007168</td>\n",
              "      <td>-0.004871</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.013654</td>\n",
              "      <td>-0.013740</td>\n",
              "      <td>-0.004322</td>\n",
              "      <td>-0.013724</td>\n",
              "      <td>-0.014169</td>\n",
              "      <td>-0.002402</td>\n",
              "      <td>-0.005937</td>\n",
              "      <td>-0.002639</td>\n",
              "      <td>-0.006270</td>\n",
              "      <td>-0.010132</td>\n",
              "      <td>-0.003569</td>\n",
              "      <td>-0.021040</td>\n",
              "      <td>-0.001519</td>\n",
              "      <td>0.014913</td>\n",
              "      <td>-0.004806</td>\n",
              "      <td>-0.002929</td>\n",
              "      <td>-0.018597</td>\n",
              "      <td>0.017715</td>\n",
              "      <td>0.001077</td>\n",
              "      <td>0.015032</td>\n",
              "      <td>-0.005119</td>\n",
              "      <td>-0.005239</td>\n",
              "      <td>-0.010329</td>\n",
              "      <td>-0.007237</td>\n",
              "      <td>-0.027281</td>\n",
              "      <td>-0.009586</td>\n",
              "      <td>-0.025641</td>\n",
              "      <td>0.002096</td>\n",
              "      <td>0.015865</td>\n",
              "      <td>-0.003385</td>\n",
              "      <td>-0.028876</td>\n",
              "      <td>-0.007014</td>\n",
              "      <td>-0.013426</td>\n",
              "      <td>0.000734</td>\n",
              "      <td>0.003882</td>\n",
              "      <td>-0.006007</td>\n",
              "      <td>0.005521</td>\n",
              "      <td>-0.004154</td>\n",
              "      <td>-0.026860</td>\n",
              "      <td>-0.011150</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>...</th>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-06-25</th>\n",
              "      <td>-0.008633</td>\n",
              "      <td>-0.017660</td>\n",
              "      <td>0.014245</td>\n",
              "      <td>-0.015158</td>\n",
              "      <td>0.009100</td>\n",
              "      <td>0.015365</td>\n",
              "      <td>-0.005451</td>\n",
              "      <td>-0.006502</td>\n",
              "      <td>-0.039684</td>\n",
              "      <td>-0.023206</td>\n",
              "      <td>-0.007611</td>\n",
              "      <td>-0.013352</td>\n",
              "      <td>-0.000372</td>\n",
              "      <td>-0.031691</td>\n",
              "      <td>-0.004161</td>\n",
              "      <td>-0.005764</td>\n",
              "      <td>0.001212</td>\n",
              "      <td>-0.001272</td>\n",
              "      <td>0.253608</td>\n",
              "      <td>-0.011065</td>\n",
              "      <td>-0.009783</td>\n",
              "      <td>0.001133</td>\n",
              "      <td>-0.008968</td>\n",
              "      <td>-0.011811</td>\n",
              "      <td>-0.003235</td>\n",
              "      <td>-0.021761</td>\n",
              "      <td>-0.007690</td>\n",
              "      <td>-0.005676</td>\n",
              "      <td>-0.014412</td>\n",
              "      <td>-0.008268</td>\n",
              "      <td>-0.013671</td>\n",
              "      <td>-0.003301</td>\n",
              "      <td>0.005360</td>\n",
              "      <td>-0.002110</td>\n",
              "      <td>-0.027198</td>\n",
              "      <td>-0.017432</td>\n",
              "      <td>-0.018616</td>\n",
              "      <td>-0.024530</td>\n",
              "      <td>-0.018415</td>\n",
              "      <td>-0.001398</td>\n",
              "      <td>...</td>\n",
              "      <td>0.003433</td>\n",
              "      <td>-0.005321</td>\n",
              "      <td>-0.025973</td>\n",
              "      <td>-0.007638</td>\n",
              "      <td>-0.005007</td>\n",
              "      <td>-0.008911</td>\n",
              "      <td>-0.014783</td>\n",
              "      <td>-0.006461</td>\n",
              "      <td>-0.027775</td>\n",
              "      <td>-0.029586</td>\n",
              "      <td>0.010767</td>\n",
              "      <td>-0.016017</td>\n",
              "      <td>-0.007969</td>\n",
              "      <td>-0.004806</td>\n",
              "      <td>-0.011233</td>\n",
              "      <td>-0.004509</td>\n",
              "      <td>0.005293</td>\n",
              "      <td>-0.005320</td>\n",
              "      <td>0.019249</td>\n",
              "      <td>-0.018267</td>\n",
              "      <td>0.001726</td>\n",
              "      <td>-0.003753</td>\n",
              "      <td>-0.009159</td>\n",
              "      <td>-0.002623</td>\n",
              "      <td>-0.017844</td>\n",
              "      <td>0.002826</td>\n",
              "      <td>-0.004702</td>\n",
              "      <td>-0.013260</td>\n",
              "      <td>-0.004697</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.010453</td>\n",
              "      <td>-0.025078</td>\n",
              "      <td>-0.006260</td>\n",
              "      <td>-0.004570</td>\n",
              "      <td>-0.024310</td>\n",
              "      <td>-0.008837</td>\n",
              "      <td>0.003821</td>\n",
              "      <td>-0.001736</td>\n",
              "      <td>-0.003163</td>\n",
              "      <td>-0.002947</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-06-26</th>\n",
              "      <td>-0.005114</td>\n",
              "      <td>0.006421</td>\n",
              "      <td>-0.029579</td>\n",
              "      <td>0.021629</td>\n",
              "      <td>-0.005933</td>\n",
              "      <td>-0.021162</td>\n",
              "      <td>-0.015251</td>\n",
              "      <td>-0.008599</td>\n",
              "      <td>0.002604</td>\n",
              "      <td>0.005350</td>\n",
              "      <td>0.001979</td>\n",
              "      <td>-0.016312</td>\n",
              "      <td>0.007142</td>\n",
              "      <td>-0.004168</td>\n",
              "      <td>-0.024158</td>\n",
              "      <td>-0.020736</td>\n",
              "      <td>-0.019976</td>\n",
              "      <td>-0.012921</td>\n",
              "      <td>0.009666</td>\n",
              "      <td>-0.008913</td>\n",
              "      <td>-0.020549</td>\n",
              "      <td>-0.030752</td>\n",
              "      <td>-0.018213</td>\n",
              "      <td>0.010281</td>\n",
              "      <td>0.020209</td>\n",
              "      <td>-0.028766</td>\n",
              "      <td>-0.000484</td>\n",
              "      <td>-0.020864</td>\n",
              "      <td>0.001518</td>\n",
              "      <td>0.038113</td>\n",
              "      <td>0.036729</td>\n",
              "      <td>0.003084</td>\n",
              "      <td>0.018262</td>\n",
              "      <td>-0.006886</td>\n",
              "      <td>0.016817</td>\n",
              "      <td>-0.023765</td>\n",
              "      <td>0.010414</td>\n",
              "      <td>0.011351</td>\n",
              "      <td>-0.022232</td>\n",
              "      <td>-0.017375</td>\n",
              "      <td>...</td>\n",
              "      <td>0.001866</td>\n",
              "      <td>-0.003186</td>\n",
              "      <td>0.029239</td>\n",
              "      <td>0.015161</td>\n",
              "      <td>-0.001161</td>\n",
              "      <td>-0.009766</td>\n",
              "      <td>-0.001284</td>\n",
              "      <td>-0.022983</td>\n",
              "      <td>0.003395</td>\n",
              "      <td>-0.016599</td>\n",
              "      <td>0.040505</td>\n",
              "      <td>-0.022382</td>\n",
              "      <td>-0.010630</td>\n",
              "      <td>-0.013822</td>\n",
              "      <td>-0.014710</td>\n",
              "      <td>-0.017422</td>\n",
              "      <td>0.002048</td>\n",
              "      <td>-0.000994</td>\n",
              "      <td>-0.010765</td>\n",
              "      <td>-0.019020</td>\n",
              "      <td>0.073099</td>\n",
              "      <td>-0.018955</td>\n",
              "      <td>-0.026771</td>\n",
              "      <td>-0.007451</td>\n",
              "      <td>0.015552</td>\n",
              "      <td>-0.028387</td>\n",
              "      <td>-0.015719</td>\n",
              "      <td>0.026502</td>\n",
              "      <td>-0.005083</td>\n",
              "      <td>-0.017051</td>\n",
              "      <td>-0.004304</td>\n",
              "      <td>0.019334</td>\n",
              "      <td>0.029158</td>\n",
              "      <td>-0.025250</td>\n",
              "      <td>0.038971</td>\n",
              "      <td>0.004327</td>\n",
              "      <td>-0.004844</td>\n",
              "      <td>0.015648</td>\n",
              "      <td>-0.001722</td>\n",
              "      <td>0.008866</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-06-27</th>\n",
              "      <td>0.014587</td>\n",
              "      <td>0.022010</td>\n",
              "      <td>0.011872</td>\n",
              "      <td>-0.000300</td>\n",
              "      <td>0.022082</td>\n",
              "      <td>0.013155</td>\n",
              "      <td>0.008832</td>\n",
              "      <td>-0.001691</td>\n",
              "      <td>0.015621</td>\n",
              "      <td>0.017769</td>\n",
              "      <td>0.001728</td>\n",
              "      <td>0.007309</td>\n",
              "      <td>0.014182</td>\n",
              "      <td>0.017048</td>\n",
              "      <td>-0.001071</td>\n",
              "      <td>-0.006831</td>\n",
              "      <td>0.013589</td>\n",
              "      <td>0.005715</td>\n",
              "      <td>0.012256</td>\n",
              "      <td>0.015117</td>\n",
              "      <td>0.003228</td>\n",
              "      <td>0.015669</td>\n",
              "      <td>0.015479</td>\n",
              "      <td>0.010304</td>\n",
              "      <td>0.005205</td>\n",
              "      <td>0.006976</td>\n",
              "      <td>0.019383</td>\n",
              "      <td>0.006533</td>\n",
              "      <td>0.006143</td>\n",
              "      <td>0.025470</td>\n",
              "      <td>0.027406</td>\n",
              "      <td>0.004896</td>\n",
              "      <td>0.014259</td>\n",
              "      <td>0.004640</td>\n",
              "      <td>-0.014265</td>\n",
              "      <td>0.000243</td>\n",
              "      <td>0.003399</td>\n",
              "      <td>0.011023</td>\n",
              "      <td>0.012839</td>\n",
              "      <td>0.014093</td>\n",
              "      <td>...</td>\n",
              "      <td>0.012419</td>\n",
              "      <td>0.001085</td>\n",
              "      <td>0.017305</td>\n",
              "      <td>0.010722</td>\n",
              "      <td>0.007169</td>\n",
              "      <td>0.009471</td>\n",
              "      <td>0.000994</td>\n",
              "      <td>0.006127</td>\n",
              "      <td>0.011669</td>\n",
              "      <td>0.008267</td>\n",
              "      <td>-0.011786</td>\n",
              "      <td>0.008966</td>\n",
              "      <td>0.007779</td>\n",
              "      <td>0.005178</td>\n",
              "      <td>0.014486</td>\n",
              "      <td>0.004433</td>\n",
              "      <td>0.006568</td>\n",
              "      <td>0.011466</td>\n",
              "      <td>0.040855</td>\n",
              "      <td>0.004812</td>\n",
              "      <td>0.021789</td>\n",
              "      <td>-0.003000</td>\n",
              "      <td>0.006908</td>\n",
              "      <td>0.010598</td>\n",
              "      <td>0.018391</td>\n",
              "      <td>0.014769</td>\n",
              "      <td>0.010908</td>\n",
              "      <td>0.001455</td>\n",
              "      <td>-0.000547</td>\n",
              "      <td>0.004082</td>\n",
              "      <td>0.020432</td>\n",
              "      <td>0.022184</td>\n",
              "      <td>0.010143</td>\n",
              "      <td>-0.002860</td>\n",
              "      <td>0.034522</td>\n",
              "      <td>-0.010183</td>\n",
              "      <td>0.001912</td>\n",
              "      <td>0.007989</td>\n",
              "      <td>0.003996</td>\n",
              "      <td>0.013970</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-06-28</th>\n",
              "      <td>0.020266</td>\n",
              "      <td>0.014357</td>\n",
              "      <td>0.016017</td>\n",
              "      <td>-0.009112</td>\n",
              "      <td>-0.004321</td>\n",
              "      <td>0.021810</td>\n",
              "      <td>0.004917</td>\n",
              "      <td>0.009672</td>\n",
              "      <td>0.004843</td>\n",
              "      <td>0.000266</td>\n",
              "      <td>0.005669</td>\n",
              "      <td>0.008048</td>\n",
              "      <td>0.020612</td>\n",
              "      <td>-0.014221</td>\n",
              "      <td>0.006162</td>\n",
              "      <td>0.001261</td>\n",
              "      <td>0.013406</td>\n",
              "      <td>0.004766</td>\n",
              "      <td>0.008554</td>\n",
              "      <td>0.004336</td>\n",
              "      <td>0.007842</td>\n",
              "      <td>0.019356</td>\n",
              "      <td>0.019199</td>\n",
              "      <td>0.009066</td>\n",
              "      <td>0.012802</td>\n",
              "      <td>0.013891</td>\n",
              "      <td>0.012676</td>\n",
              "      <td>0.015478</td>\n",
              "      <td>0.038617</td>\n",
              "      <td>0.004923</td>\n",
              "      <td>-0.012036</td>\n",
              "      <td>0.029232</td>\n",
              "      <td>0.008018</td>\n",
              "      <td>0.001413</td>\n",
              "      <td>0.007830</td>\n",
              "      <td>-0.006801</td>\n",
              "      <td>-0.005593</td>\n",
              "      <td>0.019664</td>\n",
              "      <td>-0.000744</td>\n",
              "      <td>0.002134</td>\n",
              "      <td>...</td>\n",
              "      <td>0.019933</td>\n",
              "      <td>0.018674</td>\n",
              "      <td>0.015438</td>\n",
              "      <td>0.005001</td>\n",
              "      <td>0.008080</td>\n",
              "      <td>0.009537</td>\n",
              "      <td>0.013549</td>\n",
              "      <td>0.023380</td>\n",
              "      <td>0.007497</td>\n",
              "      <td>0.020499</td>\n",
              "      <td>0.019998</td>\n",
              "      <td>0.006506</td>\n",
              "      <td>0.009021</td>\n",
              "      <td>0.026879</td>\n",
              "      <td>-0.004080</td>\n",
              "      <td>-0.002118</td>\n",
              "      <td>0.039008</td>\n",
              "      <td>0.008292</td>\n",
              "      <td>0.002751</td>\n",
              "      <td>-0.003496</td>\n",
              "      <td>0.067340</td>\n",
              "      <td>0.003491</td>\n",
              "      <td>-0.001225</td>\n",
              "      <td>0.022285</td>\n",
              "      <td>0.000351</td>\n",
              "      <td>0.013707</td>\n",
              "      <td>-0.004057</td>\n",
              "      <td>0.018155</td>\n",
              "      <td>0.003560</td>\n",
              "      <td>0.010671</td>\n",
              "      <td>0.014247</td>\n",
              "      <td>0.000323</td>\n",
              "      <td>0.027181</td>\n",
              "      <td>0.003543</td>\n",
              "      <td>-0.002208</td>\n",
              "      <td>0.010683</td>\n",
              "      <td>0.012667</td>\n",
              "      <td>0.002264</td>\n",
              "      <td>0.000995</td>\n",
              "      <td>0.021778</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-01</th>\n",
              "      <td>0.017045</td>\n",
              "      <td>0.008000</td>\n",
              "      <td>0.015895</td>\n",
              "      <td>0.018341</td>\n",
              "      <td>0.003871</td>\n",
              "      <td>0.017390</td>\n",
              "      <td>0.004535</td>\n",
              "      <td>0.011365</td>\n",
              "      <td>0.021449</td>\n",
              "      <td>0.018871</td>\n",
              "      <td>0.014706</td>\n",
              "      <td>0.006411</td>\n",
              "      <td>0.018768</td>\n",
              "      <td>0.039227</td>\n",
              "      <td>0.001331</td>\n",
              "      <td>0.001374</td>\n",
              "      <td>0.000601</td>\n",
              "      <td>0.018427</td>\n",
              "      <td>0.000538</td>\n",
              "      <td>0.010511</td>\n",
              "      <td>-0.003591</td>\n",
              "      <td>0.024535</td>\n",
              "      <td>0.021121</td>\n",
              "      <td>0.002995</td>\n",
              "      <td>-0.001136</td>\n",
              "      <td>-0.007380</td>\n",
              "      <td>-0.003129</td>\n",
              "      <td>0.014357</td>\n",
              "      <td>0.002290</td>\n",
              "      <td>0.017145</td>\n",
              "      <td>0.027330</td>\n",
              "      <td>0.013981</td>\n",
              "      <td>-0.001307</td>\n",
              "      <td>0.011233</td>\n",
              "      <td>0.004023</td>\n",
              "      <td>-0.010516</td>\n",
              "      <td>0.015082</td>\n",
              "      <td>0.016063</td>\n",
              "      <td>0.001807</td>\n",
              "      <td>0.011218</td>\n",
              "      <td>...</td>\n",
              "      <td>0.025857</td>\n",
              "      <td>0.014133</td>\n",
              "      <td>-0.002905</td>\n",
              "      <td>0.012591</td>\n",
              "      <td>0.011641</td>\n",
              "      <td>0.008756</td>\n",
              "      <td>0.002247</td>\n",
              "      <td>0.025711</td>\n",
              "      <td>0.011219</td>\n",
              "      <td>0.021091</td>\n",
              "      <td>-0.015826</td>\n",
              "      <td>0.001892</td>\n",
              "      <td>0.010184</td>\n",
              "      <td>-0.008398</td>\n",
              "      <td>-0.006437</td>\n",
              "      <td>-0.008137</td>\n",
              "      <td>0.022191</td>\n",
              "      <td>0.018305</td>\n",
              "      <td>-0.000366</td>\n",
              "      <td>-0.014488</td>\n",
              "      <td>0.044164</td>\n",
              "      <td>-0.002879</td>\n",
              "      <td>0.002576</td>\n",
              "      <td>0.007908</td>\n",
              "      <td>0.022619</td>\n",
              "      <td>0.012530</td>\n",
              "      <td>-0.000693</td>\n",
              "      <td>0.000713</td>\n",
              "      <td>0.001182</td>\n",
              "      <td>0.004525</td>\n",
              "      <td>0.002278</td>\n",
              "      <td>0.058553</td>\n",
              "      <td>0.012136</td>\n",
              "      <td>-0.001009</td>\n",
              "      <td>0.027402</td>\n",
              "      <td>-0.000913</td>\n",
              "      <td>-0.000685</td>\n",
              "      <td>0.023440</td>\n",
              "      <td>-0.010662</td>\n",
              "      <td>0.007612</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-02</th>\n",
              "      <td>-0.002243</td>\n",
              "      <td>-0.020757</td>\n",
              "      <td>0.020436</td>\n",
              "      <td>0.005855</td>\n",
              "      <td>-0.001519</td>\n",
              "      <td>-0.013320</td>\n",
              "      <td>0.005465</td>\n",
              "      <td>0.009258</td>\n",
              "      <td>0.001395</td>\n",
              "      <td>-0.012957</td>\n",
              "      <td>0.002174</td>\n",
              "      <td>-0.026624</td>\n",
              "      <td>0.025567</td>\n",
              "      <td>0.004785</td>\n",
              "      <td>0.009174</td>\n",
              "      <td>0.012004</td>\n",
              "      <td>0.010216</td>\n",
              "      <td>0.006987</td>\n",
              "      <td>0.012058</td>\n",
              "      <td>-0.000929</td>\n",
              "      <td>0.015819</td>\n",
              "      <td>-0.001560</td>\n",
              "      <td>0.009951</td>\n",
              "      <td>0.000995</td>\n",
              "      <td>-0.006541</td>\n",
              "      <td>-0.002871</td>\n",
              "      <td>-0.009732</td>\n",
              "      <td>0.001163</td>\n",
              "      <td>0.021328</td>\n",
              "      <td>-0.022329</td>\n",
              "      <td>0.001282</td>\n",
              "      <td>-0.009662</td>\n",
              "      <td>-0.020511</td>\n",
              "      <td>0.001556</td>\n",
              "      <td>0.001865</td>\n",
              "      <td>0.016461</td>\n",
              "      <td>0.006305</td>\n",
              "      <td>-0.007304</td>\n",
              "      <td>-0.007286</td>\n",
              "      <td>0.004006</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.012603</td>\n",
              "      <td>-0.001574</td>\n",
              "      <td>-0.009420</td>\n",
              "      <td>-0.018615</td>\n",
              "      <td>-0.001509</td>\n",
              "      <td>0.004721</td>\n",
              "      <td>0.007704</td>\n",
              "      <td>0.001146</td>\n",
              "      <td>-0.018227</td>\n",
              "      <td>0.003607</td>\n",
              "      <td>-0.042122</td>\n",
              "      <td>0.014477</td>\n",
              "      <td>0.011974</td>\n",
              "      <td>-0.012703</td>\n",
              "      <td>0.016934</td>\n",
              "      <td>0.025861</td>\n",
              "      <td>0.001365</td>\n",
              "      <td>-0.009034</td>\n",
              "      <td>0.005672</td>\n",
              "      <td>0.005766</td>\n",
              "      <td>-0.026586</td>\n",
              "      <td>0.013473</td>\n",
              "      <td>0.029728</td>\n",
              "      <td>-0.009754</td>\n",
              "      <td>-0.005083</td>\n",
              "      <td>0.006239</td>\n",
              "      <td>0.005204</td>\n",
              "      <td>0.004989</td>\n",
              "      <td>0.008812</td>\n",
              "      <td>0.009009</td>\n",
              "      <td>0.004545</td>\n",
              "      <td>0.013105</td>\n",
              "      <td>-0.024813</td>\n",
              "      <td>0.012115</td>\n",
              "      <td>-0.029322</td>\n",
              "      <td>-0.010972</td>\n",
              "      <td>-0.002229</td>\n",
              "      <td>-0.016556</td>\n",
              "      <td>0.012878</td>\n",
              "      <td>-0.031945</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-03</th>\n",
              "      <td>0.015739</td>\n",
              "      <td>0.016521</td>\n",
              "      <td>0.005257</td>\n",
              "      <td>0.008287</td>\n",
              "      <td>0.024924</td>\n",
              "      <td>-0.000612</td>\n",
              "      <td>0.008153</td>\n",
              "      <td>0.012566</td>\n",
              "      <td>0.014300</td>\n",
              "      <td>-0.002995</td>\n",
              "      <td>0.009159</td>\n",
              "      <td>0.013151</td>\n",
              "      <td>0.002732</td>\n",
              "      <td>0.011170</td>\n",
              "      <td>0.008169</td>\n",
              "      <td>0.010732</td>\n",
              "      <td>0.019631</td>\n",
              "      <td>0.011386</td>\n",
              "      <td>0.000413</td>\n",
              "      <td>0.019334</td>\n",
              "      <td>0.016164</td>\n",
              "      <td>0.010292</td>\n",
              "      <td>0.011845</td>\n",
              "      <td>0.010191</td>\n",
              "      <td>0.023902</td>\n",
              "      <td>0.015135</td>\n",
              "      <td>0.011888</td>\n",
              "      <td>0.013169</td>\n",
              "      <td>-0.005445</td>\n",
              "      <td>0.000224</td>\n",
              "      <td>-0.001601</td>\n",
              "      <td>0.007564</td>\n",
              "      <td>0.006572</td>\n",
              "      <td>0.010394</td>\n",
              "      <td>0.012344</td>\n",
              "      <td>0.022078</td>\n",
              "      <td>0.002425</td>\n",
              "      <td>0.013263</td>\n",
              "      <td>0.007554</td>\n",
              "      <td>0.013045</td>\n",
              "      <td>...</td>\n",
              "      <td>0.014544</td>\n",
              "      <td>0.003329</td>\n",
              "      <td>0.011765</td>\n",
              "      <td>0.008498</td>\n",
              "      <td>0.006046</td>\n",
              "      <td>0.007881</td>\n",
              "      <td>0.009071</td>\n",
              "      <td>-0.006581</td>\n",
              "      <td>0.014068</td>\n",
              "      <td>0.017968</td>\n",
              "      <td>0.015786</td>\n",
              "      <td>0.005429</td>\n",
              "      <td>0.015153</td>\n",
              "      <td>0.020776</td>\n",
              "      <td>0.020996</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.000954</td>\n",
              "      <td>0.020626</td>\n",
              "      <td>0.004185</td>\n",
              "      <td>-0.003079</td>\n",
              "      <td>-0.008070</td>\n",
              "      <td>0.010445</td>\n",
              "      <td>0.013069</td>\n",
              "      <td>0.009208</td>\n",
              "      <td>0.009597</td>\n",
              "      <td>0.003023</td>\n",
              "      <td>0.011390</td>\n",
              "      <td>0.006738</td>\n",
              "      <td>0.006484</td>\n",
              "      <td>0.004464</td>\n",
              "      <td>0.012443</td>\n",
              "      <td>0.003083</td>\n",
              "      <td>0.003074</td>\n",
              "      <td>0.009310</td>\n",
              "      <td>-0.010240</td>\n",
              "      <td>0.009509</td>\n",
              "      <td>0.002234</td>\n",
              "      <td>0.023569</td>\n",
              "      <td>0.000721</td>\n",
              "      <td>0.011594</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-05</th>\n",
              "      <td>-0.013672</td>\n",
              "      <td>-0.007973</td>\n",
              "      <td>-0.000062</td>\n",
              "      <td>-0.000881</td>\n",
              "      <td>0.004338</td>\n",
              "      <td>0.000536</td>\n",
              "      <td>-0.002579</td>\n",
              "      <td>0.002199</td>\n",
              "      <td>-0.005626</td>\n",
              "      <td>-0.002739</td>\n",
              "      <td>0.001672</td>\n",
              "      <td>0.004571</td>\n",
              "      <td>0.009809</td>\n",
              "      <td>0.001337</td>\n",
              "      <td>-0.000915</td>\n",
              "      <td>-0.003353</td>\n",
              "      <td>-0.009335</td>\n",
              "      <td>-0.000704</td>\n",
              "      <td>-0.011320</td>\n",
              "      <td>-0.004012</td>\n",
              "      <td>-0.008923</td>\n",
              "      <td>0.001637</td>\n",
              "      <td>-0.008862</td>\n",
              "      <td>0.005167</td>\n",
              "      <td>-0.014398</td>\n",
              "      <td>-0.006218</td>\n",
              "      <td>0.003603</td>\n",
              "      <td>-0.001338</td>\n",
              "      <td>-0.022872</td>\n",
              "      <td>-0.015447</td>\n",
              "      <td>0.009939</td>\n",
              "      <td>-0.008922</td>\n",
              "      <td>0.003541</td>\n",
              "      <td>-0.013999</td>\n",
              "      <td>0.015531</td>\n",
              "      <td>-0.005377</td>\n",
              "      <td>0.002017</td>\n",
              "      <td>0.000860</td>\n",
              "      <td>0.004526</td>\n",
              "      <td>-0.004545</td>\n",
              "      <td>...</td>\n",
              "      <td>0.003511</td>\n",
              "      <td>-0.010303</td>\n",
              "      <td>-0.007558</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.008075</td>\n",
              "      <td>-0.003459</td>\n",
              "      <td>-0.001187</td>\n",
              "      <td>0.004105</td>\n",
              "      <td>-0.001478</td>\n",
              "      <td>0.006739</td>\n",
              "      <td>-0.001727</td>\n",
              "      <td>0.000309</td>\n",
              "      <td>0.001244</td>\n",
              "      <td>-0.026847</td>\n",
              "      <td>-0.010211</td>\n",
              "      <td>0.003129</td>\n",
              "      <td>0.002861</td>\n",
              "      <td>-0.006541</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.003053</td>\n",
              "      <td>0.012098</td>\n",
              "      <td>-0.001292</td>\n",
              "      <td>-0.012314</td>\n",
              "      <td>0.002334</td>\n",
              "      <td>-0.010737</td>\n",
              "      <td>0.000511</td>\n",
              "      <td>-0.006228</td>\n",
              "      <td>-0.001409</td>\n",
              "      <td>-0.003042</td>\n",
              "      <td>0.004938</td>\n",
              "      <td>-0.008939</td>\n",
              "      <td>-0.004274</td>\n",
              "      <td>0.006639</td>\n",
              "      <td>-0.000329</td>\n",
              "      <td>-0.002414</td>\n",
              "      <td>-0.004055</td>\n",
              "      <td>-0.008916</td>\n",
              "      <td>-0.001096</td>\n",
              "      <td>-0.006668</td>\n",
              "      <td>0.018514</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-08</th>\n",
              "      <td>-0.025215</td>\n",
              "      <td>0.010201</td>\n",
              "      <td>-0.015129</td>\n",
              "      <td>-0.020614</td>\n",
              "      <td>-0.001591</td>\n",
              "      <td>-0.014113</td>\n",
              "      <td>-0.003878</td>\n",
              "      <td>-0.005643</td>\n",
              "      <td>-0.003487</td>\n",
              "      <td>-0.009126</td>\n",
              "      <td>-0.002384</td>\n",
              "      <td>-0.004671</td>\n",
              "      <td>-0.010388</td>\n",
              "      <td>-0.013703</td>\n",
              "      <td>0.000262</td>\n",
              "      <td>0.001009</td>\n",
              "      <td>0.001767</td>\n",
              "      <td>-0.002816</td>\n",
              "      <td>-0.016340</td>\n",
              "      <td>0.006409</td>\n",
              "      <td>0.005481</td>\n",
              "      <td>0.003269</td>\n",
              "      <td>-0.002429</td>\n",
              "      <td>-0.006242</td>\n",
              "      <td>-0.004538</td>\n",
              "      <td>-0.003842</td>\n",
              "      <td>0.009521</td>\n",
              "      <td>-0.001053</td>\n",
              "      <td>-0.038373</td>\n",
              "      <td>-0.012051</td>\n",
              "      <td>0.017143</td>\n",
              "      <td>-0.005379</td>\n",
              "      <td>-0.016760</td>\n",
              "      <td>-0.019899</td>\n",
              "      <td>-0.007848</td>\n",
              "      <td>-0.000431</td>\n",
              "      <td>0.004843</td>\n",
              "      <td>-0.007541</td>\n",
              "      <td>0.002394</td>\n",
              "      <td>-0.005631</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.006122</td>\n",
              "      <td>-0.002588</td>\n",
              "      <td>-0.004882</td>\n",
              "      <td>-0.007523</td>\n",
              "      <td>-0.010805</td>\n",
              "      <td>-0.012600</td>\n",
              "      <td>-0.002660</td>\n",
              "      <td>-0.015275</td>\n",
              "      <td>0.006264</td>\n",
              "      <td>0.000956</td>\n",
              "      <td>-0.005807</td>\n",
              "      <td>0.002159</td>\n",
              "      <td>-0.007776</td>\n",
              "      <td>-0.008916</td>\n",
              "      <td>0.004442</td>\n",
              "      <td>-0.007106</td>\n",
              "      <td>0.001630</td>\n",
              "      <td>-0.013985</td>\n",
              "      <td>0.004349</td>\n",
              "      <td>-0.004672</td>\n",
              "      <td>0.027824</td>\n",
              "      <td>0.003176</td>\n",
              "      <td>0.012349</td>\n",
              "      <td>-0.005080</td>\n",
              "      <td>-0.000899</td>\n",
              "      <td>-0.005974</td>\n",
              "      <td>0.003520</td>\n",
              "      <td>0.003175</td>\n",
              "      <td>0.006641</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>-0.006764</td>\n",
              "      <td>0.001882</td>\n",
              "      <td>-0.036191</td>\n",
              "      <td>0.002636</td>\n",
              "      <td>-0.001556</td>\n",
              "      <td>0.004597</td>\n",
              "      <td>-0.002768</td>\n",
              "      <td>-0.021405</td>\n",
              "      <td>-0.001724</td>\n",
              "      <td>-0.019260</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-09</th>\n",
              "      <td>-0.005282</td>\n",
              "      <td>-0.013158</td>\n",
              "      <td>-0.017005</td>\n",
              "      <td>0.006099</td>\n",
              "      <td>0.004554</td>\n",
              "      <td>-0.001862</td>\n",
              "      <td>0.002123</td>\n",
              "      <td>0.004099</td>\n",
              "      <td>0.004226</td>\n",
              "      <td>0.013056</td>\n",
              "      <td>-0.001673</td>\n",
              "      <td>-0.003230</td>\n",
              "      <td>0.008861</td>\n",
              "      <td>0.008713</td>\n",
              "      <td>0.001831</td>\n",
              "      <td>0.004817</td>\n",
              "      <td>-0.005291</td>\n",
              "      <td>-0.002118</td>\n",
              "      <td>0.009094</td>\n",
              "      <td>0.010189</td>\n",
              "      <td>0.011291</td>\n",
              "      <td>0.001810</td>\n",
              "      <td>0.004316</td>\n",
              "      <td>0.002094</td>\n",
              "      <td>0.006126</td>\n",
              "      <td>0.011644</td>\n",
              "      <td>-0.015306</td>\n",
              "      <td>0.002683</td>\n",
              "      <td>0.003352</td>\n",
              "      <td>0.011968</td>\n",
              "      <td>0.034644</td>\n",
              "      <td>-0.002539</td>\n",
              "      <td>0.009981</td>\n",
              "      <td>-0.003567</td>\n",
              "      <td>0.008451</td>\n",
              "      <td>0.011295</td>\n",
              "      <td>0.018429</td>\n",
              "      <td>-0.005819</td>\n",
              "      <td>-0.002037</td>\n",
              "      <td>0.000408</td>\n",
              "      <td>...</td>\n",
              "      <td>0.004693</td>\n",
              "      <td>0.000059</td>\n",
              "      <td>-0.001864</td>\n",
              "      <td>-0.003866</td>\n",
              "      <td>0.004520</td>\n",
              "      <td>-0.003668</td>\n",
              "      <td>0.008741</td>\n",
              "      <td>0.005753</td>\n",
              "      <td>-0.018108</td>\n",
              "      <td>-0.004777</td>\n",
              "      <td>0.010811</td>\n",
              "      <td>0.005232</td>\n",
              "      <td>0.008533</td>\n",
              "      <td>0.009675</td>\n",
              "      <td>0.003994</td>\n",
              "      <td>-0.015360</td>\n",
              "      <td>-0.021562</td>\n",
              "      <td>-0.000737</td>\n",
              "      <td>0.001263</td>\n",
              "      <td>-0.012019</td>\n",
              "      <td>0.032284</td>\n",
              "      <td>0.004807</td>\n",
              "      <td>0.009852</td>\n",
              "      <td>0.006383</td>\n",
              "      <td>-0.011970</td>\n",
              "      <td>0.002979</td>\n",
              "      <td>0.001027</td>\n",
              "      <td>0.010549</td>\n",
              "      <td>0.001426</td>\n",
              "      <td>0.014742</td>\n",
              "      <td>-0.005297</td>\n",
              "      <td>0.005035</td>\n",
              "      <td>0.002632</td>\n",
              "      <td>0.000657</td>\n",
              "      <td>0.012118</td>\n",
              "      <td>-0.000654</td>\n",
              "      <td>-0.001214</td>\n",
              "      <td>0.008132</td>\n",
              "      <td>0.003998</td>\n",
              "      <td>0.013460</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-10</th>\n",
              "      <td>-0.001089</td>\n",
              "      <td>0.017674</td>\n",
              "      <td>0.005981</td>\n",
              "      <td>0.009889</td>\n",
              "      <td>0.012127</td>\n",
              "      <td>-0.005791</td>\n",
              "      <td>0.001295</td>\n",
              "      <td>0.003245</td>\n",
              "      <td>0.009139</td>\n",
              "      <td>0.006355</td>\n",
              "      <td>0.000718</td>\n",
              "      <td>0.006115</td>\n",
              "      <td>-0.000473</td>\n",
              "      <td>0.008112</td>\n",
              "      <td>0.000522</td>\n",
              "      <td>0.004906</td>\n",
              "      <td>-0.004137</td>\n",
              "      <td>-0.000354</td>\n",
              "      <td>0.001502</td>\n",
              "      <td>0.003782</td>\n",
              "      <td>0.007700</td>\n",
              "      <td>-0.006053</td>\n",
              "      <td>0.001102</td>\n",
              "      <td>0.004548</td>\n",
              "      <td>-0.001841</td>\n",
              "      <td>0.040812</td>\n",
              "      <td>-0.011776</td>\n",
              "      <td>-0.003822</td>\n",
              "      <td>-0.010738</td>\n",
              "      <td>0.017057</td>\n",
              "      <td>0.019306</td>\n",
              "      <td>-0.008742</td>\n",
              "      <td>0.001555</td>\n",
              "      <td>0.003745</td>\n",
              "      <td>-0.012470</td>\n",
              "      <td>0.001041</td>\n",
              "      <td>0.014641</td>\n",
              "      <td>0.013690</td>\n",
              "      <td>0.013232</td>\n",
              "      <td>0.006476</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.048759</td>\n",
              "      <td>-0.000177</td>\n",
              "      <td>-0.001081</td>\n",
              "      <td>-0.007077</td>\n",
              "      <td>-0.003000</td>\n",
              "      <td>0.000460</td>\n",
              "      <td>0.008890</td>\n",
              "      <td>-0.010934</td>\n",
              "      <td>0.000922</td>\n",
              "      <td>0.000960</td>\n",
              "      <td>0.014138</td>\n",
              "      <td>0.004440</td>\n",
              "      <td>0.006391</td>\n",
              "      <td>0.001681</td>\n",
              "      <td>0.006820</td>\n",
              "      <td>0.010459</td>\n",
              "      <td>-0.032155</td>\n",
              "      <td>0.001290</td>\n",
              "      <td>0.001261</td>\n",
              "      <td>0.008818</td>\n",
              "      <td>0.049728</td>\n",
              "      <td>0.005018</td>\n",
              "      <td>0.007201</td>\n",
              "      <td>-0.014165</td>\n",
              "      <td>-0.005042</td>\n",
              "      <td>0.001844</td>\n",
              "      <td>0.006666</td>\n",
              "      <td>0.002784</td>\n",
              "      <td>0.000890</td>\n",
              "      <td>-0.004843</td>\n",
              "      <td>0.000761</td>\n",
              "      <td>-0.025350</td>\n",
              "      <td>-0.000875</td>\n",
              "      <td>0.004598</td>\n",
              "      <td>0.001283</td>\n",
              "      <td>0.014131</td>\n",
              "      <td>-0.004864</td>\n",
              "      <td>-0.013074</td>\n",
              "      <td>0.004435</td>\n",
              "      <td>-0.014152</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-11</th>\n",
              "      <td>-0.022216</td>\n",
              "      <td>0.002742</td>\n",
              "      <td>-0.000895</td>\n",
              "      <td>-0.007282</td>\n",
              "      <td>0.013774</td>\n",
              "      <td>0.040186</td>\n",
              "      <td>0.004585</td>\n",
              "      <td>0.015440</td>\n",
              "      <td>0.002020</td>\n",
              "      <td>-0.000789</td>\n",
              "      <td>-0.001675</td>\n",
              "      <td>0.004072</td>\n",
              "      <td>0.000203</td>\n",
              "      <td>0.003416</td>\n",
              "      <td>0.000391</td>\n",
              "      <td>0.001331</td>\n",
              "      <td>-0.001780</td>\n",
              "      <td>-0.002654</td>\n",
              "      <td>-0.004379</td>\n",
              "      <td>-0.004486</td>\n",
              "      <td>-0.014136</td>\n",
              "      <td>0.000818</td>\n",
              "      <td>0.005723</td>\n",
              "      <td>0.006852</td>\n",
              "      <td>0.001277</td>\n",
              "      <td>-0.014164</td>\n",
              "      <td>0.005879</td>\n",
              "      <td>-0.010646</td>\n",
              "      <td>-0.023157</td>\n",
              "      <td>0.012522</td>\n",
              "      <td>-0.021604</td>\n",
              "      <td>0.000112</td>\n",
              "      <td>0.005100</td>\n",
              "      <td>-0.023427</td>\n",
              "      <td>0.014121</td>\n",
              "      <td>-0.010731</td>\n",
              "      <td>-0.008099</td>\n",
              "      <td>0.008351</td>\n",
              "      <td>0.055432</td>\n",
              "      <td>-0.005979</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.006446</td>\n",
              "      <td>0.012856</td>\n",
              "      <td>0.016827</td>\n",
              "      <td>0.006514</td>\n",
              "      <td>0.005453</td>\n",
              "      <td>0.006823</td>\n",
              "      <td>0.007975</td>\n",
              "      <td>-0.010542</td>\n",
              "      <td>0.011861</td>\n",
              "      <td>0.013747</td>\n",
              "      <td>0.012244</td>\n",
              "      <td>-0.012346</td>\n",
              "      <td>-0.001279</td>\n",
              "      <td>-0.015384</td>\n",
              "      <td>-0.020040</td>\n",
              "      <td>-0.001404</td>\n",
              "      <td>-0.002005</td>\n",
              "      <td>-0.001933</td>\n",
              "      <td>0.000900</td>\n",
              "      <td>0.023047</td>\n",
              "      <td>0.004071</td>\n",
              "      <td>-0.000116</td>\n",
              "      <td>-0.017874</td>\n",
              "      <td>-0.000214</td>\n",
              "      <td>0.003871</td>\n",
              "      <td>0.003527</td>\n",
              "      <td>-0.004584</td>\n",
              "      <td>-0.003817</td>\n",
              "      <td>0.008272</td>\n",
              "      <td>-0.006813</td>\n",
              "      <td>-0.019004</td>\n",
              "      <td>0.002378</td>\n",
              "      <td>-0.038010</td>\n",
              "      <td>0.000327</td>\n",
              "      <td>0.007516</td>\n",
              "      <td>0.000774</td>\n",
              "      <td>-0.009077</td>\n",
              "      <td>-0.015784</td>\n",
              "      <td>0.004686</td>\n",
              "      <td>0.012367</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-12</th>\n",
              "      <td>-0.001255</td>\n",
              "      <td>0.022789</td>\n",
              "      <td>0.014652</td>\n",
              "      <td>0.007683</td>\n",
              "      <td>-0.007511</td>\n",
              "      <td>-0.012778</td>\n",
              "      <td>-0.017905</td>\n",
              "      <td>0.007911</td>\n",
              "      <td>0.005917</td>\n",
              "      <td>0.020014</td>\n",
              "      <td>0.004553</td>\n",
              "      <td>-0.000484</td>\n",
              "      <td>0.011016</td>\n",
              "      <td>0.004962</td>\n",
              "      <td>-0.006781</td>\n",
              "      <td>-0.007424</td>\n",
              "      <td>0.007134</td>\n",
              "      <td>0.009404</td>\n",
              "      <td>-0.000723</td>\n",
              "      <td>0.014239</td>\n",
              "      <td>0.002519</td>\n",
              "      <td>0.013533</td>\n",
              "      <td>0.004924</td>\n",
              "      <td>0.002066</td>\n",
              "      <td>0.029045</td>\n",
              "      <td>0.004671</td>\n",
              "      <td>0.014690</td>\n",
              "      <td>0.007368</td>\n",
              "      <td>-0.005515</td>\n",
              "      <td>0.027164</td>\n",
              "      <td>0.004537</td>\n",
              "      <td>0.015738</td>\n",
              "      <td>-0.013788</td>\n",
              "      <td>-0.017247</td>\n",
              "      <td>0.004820</td>\n",
              "      <td>-0.001338</td>\n",
              "      <td>0.004962</td>\n",
              "      <td>0.004638</td>\n",
              "      <td>0.021719</td>\n",
              "      <td>0.004231</td>\n",
              "      <td>...</td>\n",
              "      <td>0.012975</td>\n",
              "      <td>0.013392</td>\n",
              "      <td>0.024969</td>\n",
              "      <td>0.038148</td>\n",
              "      <td>0.002431</td>\n",
              "      <td>0.018121</td>\n",
              "      <td>-0.002268</td>\n",
              "      <td>-0.002072</td>\n",
              "      <td>0.011494</td>\n",
              "      <td>-0.000315</td>\n",
              "      <td>0.003832</td>\n",
              "      <td>0.001852</td>\n",
              "      <td>0.004849</td>\n",
              "      <td>-0.001250</td>\n",
              "      <td>-0.004608</td>\n",
              "      <td>0.004743</td>\n",
              "      <td>0.032142</td>\n",
              "      <td>0.001291</td>\n",
              "      <td>0.002157</td>\n",
              "      <td>0.019633</td>\n",
              "      <td>0.019167</td>\n",
              "      <td>-0.007548</td>\n",
              "      <td>-0.004931</td>\n",
              "      <td>0.004505</td>\n",
              "      <td>0.026572</td>\n",
              "      <td>0.000611</td>\n",
              "      <td>0.005629</td>\n",
              "      <td>0.004876</td>\n",
              "      <td>0.005999</td>\n",
              "      <td>0.004410</td>\n",
              "      <td>-0.010461</td>\n",
              "      <td>0.024799</td>\n",
              "      <td>0.017298</td>\n",
              "      <td>-0.006374</td>\n",
              "      <td>0.016446</td>\n",
              "      <td>0.000773</td>\n",
              "      <td>0.002818</td>\n",
              "      <td>0.012887</td>\n",
              "      <td>-0.004036</td>\n",
              "      <td>0.011780</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-15</th>\n",
              "      <td>-0.015352</td>\n",
              "      <td>-0.005051</td>\n",
              "      <td>0.002144</td>\n",
              "      <td>0.009395</td>\n",
              "      <td>0.000890</td>\n",
              "      <td>-0.008032</td>\n",
              "      <td>-0.001311</td>\n",
              "      <td>-0.004536</td>\n",
              "      <td>-0.002133</td>\n",
              "      <td>0.007057</td>\n",
              "      <td>-0.004294</td>\n",
              "      <td>-0.000727</td>\n",
              "      <td>0.002807</td>\n",
              "      <td>-0.002756</td>\n",
              "      <td>0.001707</td>\n",
              "      <td>0.010382</td>\n",
              "      <td>0.004132</td>\n",
              "      <td>-0.005625</td>\n",
              "      <td>0.001387</td>\n",
              "      <td>-0.000533</td>\n",
              "      <td>-0.002126</td>\n",
              "      <td>0.005646</td>\n",
              "      <td>0.004247</td>\n",
              "      <td>0.012248</td>\n",
              "      <td>-0.002891</td>\n",
              "      <td>0.001374</td>\n",
              "      <td>-0.013699</td>\n",
              "      <td>0.004619</td>\n",
              "      <td>0.018374</td>\n",
              "      <td>-0.004945</td>\n",
              "      <td>0.035531</td>\n",
              "      <td>-0.000220</td>\n",
              "      <td>-0.008388</td>\n",
              "      <td>0.006803</td>\n",
              "      <td>-0.005663</td>\n",
              "      <td>0.008230</td>\n",
              "      <td>0.004968</td>\n",
              "      <td>-0.006407</td>\n",
              "      <td>-0.011692</td>\n",
              "      <td>0.000305</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.010674</td>\n",
              "      <td>-0.007814</td>\n",
              "      <td>-0.001133</td>\n",
              "      <td>-0.011735</td>\n",
              "      <td>-0.008955</td>\n",
              "      <td>-0.003664</td>\n",
              "      <td>0.001331</td>\n",
              "      <td>0.002818</td>\n",
              "      <td>-0.004950</td>\n",
              "      <td>0.000946</td>\n",
              "      <td>-0.005011</td>\n",
              "      <td>-0.001232</td>\n",
              "      <td>0.006328</td>\n",
              "      <td>0.003299</td>\n",
              "      <td>-0.007523</td>\n",
              "      <td>0.006819</td>\n",
              "      <td>-0.011400</td>\n",
              "      <td>-0.002349</td>\n",
              "      <td>0.002691</td>\n",
              "      <td>-0.006772</td>\n",
              "      <td>-0.011935</td>\n",
              "      <td>0.010296</td>\n",
              "      <td>-0.004012</td>\n",
              "      <td>-0.013666</td>\n",
              "      <td>-0.017211</td>\n",
              "      <td>0.006364</td>\n",
              "      <td>0.001018</td>\n",
              "      <td>-0.001733</td>\n",
              "      <td>0.003332</td>\n",
              "      <td>0.013171</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.028979</td>\n",
              "      <td>-0.044568</td>\n",
              "      <td>0.006250</td>\n",
              "      <td>0.011176</td>\n",
              "      <td>-0.007085</td>\n",
              "      <td>0.002810</td>\n",
              "      <td>-0.010178</td>\n",
              "      <td>0.007924</td>\n",
              "      <td>-0.021777</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-16</th>\n",
              "      <td>-0.008505</td>\n",
              "      <td>0.018214</td>\n",
              "      <td>0.017871</td>\n",
              "      <td>-0.003460</td>\n",
              "      <td>-0.010341</td>\n",
              "      <td>-0.026211</td>\n",
              "      <td>-0.007756</td>\n",
              "      <td>-0.005478</td>\n",
              "      <td>-0.009911</td>\n",
              "      <td>-0.013331</td>\n",
              "      <td>-0.022041</td>\n",
              "      <td>-0.004909</td>\n",
              "      <td>0.004866</td>\n",
              "      <td>-0.015543</td>\n",
              "      <td>-0.000786</td>\n",
              "      <td>-0.007513</td>\n",
              "      <td>0.008230</td>\n",
              "      <td>-0.008132</td>\n",
              "      <td>-0.010959</td>\n",
              "      <td>-0.003734</td>\n",
              "      <td>-0.003293</td>\n",
              "      <td>-0.001426</td>\n",
              "      <td>-0.000325</td>\n",
              "      <td>-0.001198</td>\n",
              "      <td>0.008699</td>\n",
              "      <td>-0.011361</td>\n",
              "      <td>0.032355</td>\n",
              "      <td>0.004407</td>\n",
              "      <td>-0.001788</td>\n",
              "      <td>-0.005834</td>\n",
              "      <td>-0.015702</td>\n",
              "      <td>0.003517</td>\n",
              "      <td>-0.014663</td>\n",
              "      <td>0.007665</td>\n",
              "      <td>0.004020</td>\n",
              "      <td>-0.006597</td>\n",
              "      <td>-0.005487</td>\n",
              "      <td>-0.005595</td>\n",
              "      <td>-0.004693</td>\n",
              "      <td>-0.002283</td>\n",
              "      <td>...</td>\n",
              "      <td>0.007090</td>\n",
              "      <td>0.014245</td>\n",
              "      <td>-0.001701</td>\n",
              "      <td>0.021152</td>\n",
              "      <td>-0.001506</td>\n",
              "      <td>-0.000300</td>\n",
              "      <td>-0.006978</td>\n",
              "      <td>-0.002588</td>\n",
              "      <td>-0.001470</td>\n",
              "      <td>-0.000630</td>\n",
              "      <td>-0.001319</td>\n",
              "      <td>-0.000463</td>\n",
              "      <td>-0.015834</td>\n",
              "      <td>-0.001191</td>\n",
              "      <td>-0.006268</td>\n",
              "      <td>-0.002952</td>\n",
              "      <td>0.017860</td>\n",
              "      <td>-0.008356</td>\n",
              "      <td>-0.001431</td>\n",
              "      <td>-0.000723</td>\n",
              "      <td>-0.057650</td>\n",
              "      <td>-0.002432</td>\n",
              "      <td>0.002843</td>\n",
              "      <td>-0.030093</td>\n",
              "      <td>0.032453</td>\n",
              "      <td>-0.000911</td>\n",
              "      <td>0.001186</td>\n",
              "      <td>-0.020833</td>\n",
              "      <td>-0.001923</td>\n",
              "      <td>-0.011555</td>\n",
              "      <td>0.007831</td>\n",
              "      <td>0.011396</td>\n",
              "      <td>-0.034657</td>\n",
              "      <td>-0.002942</td>\n",
              "      <td>-0.003547</td>\n",
              "      <td>-0.014920</td>\n",
              "      <td>-0.010860</td>\n",
              "      <td>0.008569</td>\n",
              "      <td>-0.003484</td>\n",
              "      <td>0.002645</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-17</th>\n",
              "      <td>-0.005147</td>\n",
              "      <td>-0.028152</td>\n",
              "      <td>-0.025284</td>\n",
              "      <td>-0.005623</td>\n",
              "      <td>-0.039775</td>\n",
              "      <td>0.024867</td>\n",
              "      <td>0.031265</td>\n",
              "      <td>-0.002265</td>\n",
              "      <td>0.012071</td>\n",
              "      <td>-0.013165</td>\n",
              "      <td>-0.012494</td>\n",
              "      <td>0.007247</td>\n",
              "      <td>-0.000066</td>\n",
              "      <td>0.003567</td>\n",
              "      <td>0.006690</td>\n",
              "      <td>0.005677</td>\n",
              "      <td>0.020991</td>\n",
              "      <td>-0.008376</td>\n",
              "      <td>-0.010958</td>\n",
              "      <td>-0.011779</td>\n",
              "      <td>-0.008939</td>\n",
              "      <td>-0.003213</td>\n",
              "      <td>-0.002603</td>\n",
              "      <td>0.005518</td>\n",
              "      <td>-0.005613</td>\n",
              "      <td>0.010104</td>\n",
              "      <td>-0.024920</td>\n",
              "      <td>-0.018216</td>\n",
              "      <td>0.004804</td>\n",
              "      <td>0.004564</td>\n",
              "      <td>-0.007386</td>\n",
              "      <td>-0.022125</td>\n",
              "      <td>-0.027129</td>\n",
              "      <td>-0.002310</td>\n",
              "      <td>-0.016016</td>\n",
              "      <td>-0.002723</td>\n",
              "      <td>-0.008891</td>\n",
              "      <td>-0.000191</td>\n",
              "      <td>-0.002357</td>\n",
              "      <td>-0.011748</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.008571</td>\n",
              "      <td>-0.060520</td>\n",
              "      <td>-0.032005</td>\n",
              "      <td>-0.044335</td>\n",
              "      <td>0.022247</td>\n",
              "      <td>-0.023200</td>\n",
              "      <td>-0.000892</td>\n",
              "      <td>-0.000371</td>\n",
              "      <td>-0.021175</td>\n",
              "      <td>-0.021129</td>\n",
              "      <td>-0.011526</td>\n",
              "      <td>-0.006789</td>\n",
              "      <td>-0.002666</td>\n",
              "      <td>0.005563</td>\n",
              "      <td>0.006308</td>\n",
              "      <td>-0.003310</td>\n",
              "      <td>-0.024869</td>\n",
              "      <td>-0.009311</td>\n",
              "      <td>-0.023114</td>\n",
              "      <td>-0.007409</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.008823</td>\n",
              "      <td>-0.001772</td>\n",
              "      <td>-0.002009</td>\n",
              "      <td>0.004240</td>\n",
              "      <td>-0.012456</td>\n",
              "      <td>0.000169</td>\n",
              "      <td>-0.017021</td>\n",
              "      <td>-0.001401</td>\n",
              "      <td>-0.006819</td>\n",
              "      <td>-0.017094</td>\n",
              "      <td>-0.024760</td>\n",
              "      <td>-0.034349</td>\n",
              "      <td>0.004590</td>\n",
              "      <td>-0.002649</td>\n",
              "      <td>-0.005927</td>\n",
              "      <td>0.008146</td>\n",
              "      <td>-0.012744</td>\n",
              "      <td>0.002062</td>\n",
              "      <td>-0.013410</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-18</th>\n",
              "      <td>0.007760</td>\n",
              "      <td>0.014484</td>\n",
              "      <td>0.001459</td>\n",
              "      <td>0.011360</td>\n",
              "      <td>0.015212</td>\n",
              "      <td>0.010421</td>\n",
              "      <td>0.023321</td>\n",
              "      <td>0.005211</td>\n",
              "      <td>0.002230</td>\n",
              "      <td>0.018167</td>\n",
              "      <td>-0.003721</td>\n",
              "      <td>0.014390</td>\n",
              "      <td>0.048162</td>\n",
              "      <td>0.004428</td>\n",
              "      <td>0.005473</td>\n",
              "      <td>0.008081</td>\n",
              "      <td>-0.006853</td>\n",
              "      <td>0.008807</td>\n",
              "      <td>-0.002524</td>\n",
              "      <td>0.004154</td>\n",
              "      <td>0.000588</td>\n",
              "      <td>0.002507</td>\n",
              "      <td>0.001088</td>\n",
              "      <td>-0.003937</td>\n",
              "      <td>0.004956</td>\n",
              "      <td>-0.001902</td>\n",
              "      <td>0.009094</td>\n",
              "      <td>0.002526</td>\n",
              "      <td>-0.001215</td>\n",
              "      <td>0.042190</td>\n",
              "      <td>-0.017857</td>\n",
              "      <td>-0.004256</td>\n",
              "      <td>0.030357</td>\n",
              "      <td>0.014007</td>\n",
              "      <td>0.010783</td>\n",
              "      <td>-0.000383</td>\n",
              "      <td>-0.007093</td>\n",
              "      <td>-0.010205</td>\n",
              "      <td>-0.000394</td>\n",
              "      <td>0.011682</td>\n",
              "      <td>...</td>\n",
              "      <td>0.003396</td>\n",
              "      <td>0.058949</td>\n",
              "      <td>0.005576</td>\n",
              "      <td>-0.078941</td>\n",
              "      <td>0.017890</td>\n",
              "      <td>0.009224</td>\n",
              "      <td>0.007703</td>\n",
              "      <td>0.003782</td>\n",
              "      <td>0.008329</td>\n",
              "      <td>-0.014820</td>\n",
              "      <td>0.001336</td>\n",
              "      <td>0.000155</td>\n",
              "      <td>-0.009956</td>\n",
              "      <td>0.005363</td>\n",
              "      <td>0.004373</td>\n",
              "      <td>-0.000175</td>\n",
              "      <td>-0.016294</td>\n",
              "      <td>0.009398</td>\n",
              "      <td>0.005503</td>\n",
              "      <td>0.001215</td>\n",
              "      <td>0.026996</td>\n",
              "      <td>0.010932</td>\n",
              "      <td>0.004142</td>\n",
              "      <td>0.013420</td>\n",
              "      <td>0.007909</td>\n",
              "      <td>0.013690</td>\n",
              "      <td>-0.001861</td>\n",
              "      <td>-0.005772</td>\n",
              "      <td>0.001052</td>\n",
              "      <td>0.005885</td>\n",
              "      <td>-0.007905</td>\n",
              "      <td>-0.005887</td>\n",
              "      <td>-0.013666</td>\n",
              "      <td>0.010607</td>\n",
              "      <td>0.016184</td>\n",
              "      <td>-0.008479</td>\n",
              "      <td>0.001230</td>\n",
              "      <td>0.009753</td>\n",
              "      <td>0.011542</td>\n",
              "      <td>0.014706</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-19</th>\n",
              "      <td>-0.020391</td>\n",
              "      <td>-0.019631</td>\n",
              "      <td>-0.006143</td>\n",
              "      <td>-0.014928</td>\n",
              "      <td>-0.014292</td>\n",
              "      <td>-0.008753</td>\n",
              "      <td>-0.003077</td>\n",
              "      <td>-0.004568</td>\n",
              "      <td>-0.010352</td>\n",
              "      <td>-0.001983</td>\n",
              "      <td>0.002241</td>\n",
              "      <td>-0.007808</td>\n",
              "      <td>-0.040759</td>\n",
              "      <td>-0.017809</td>\n",
              "      <td>-0.015293</td>\n",
              "      <td>-0.016032</td>\n",
              "      <td>-0.017826</td>\n",
              "      <td>-0.020132</td>\n",
              "      <td>0.006850</td>\n",
              "      <td>0.006115</td>\n",
              "      <td>-0.027631</td>\n",
              "      <td>-0.007323</td>\n",
              "      <td>-0.002607</td>\n",
              "      <td>-0.000599</td>\n",
              "      <td>0.020137</td>\n",
              "      <td>-0.007623</td>\n",
              "      <td>-0.013518</td>\n",
              "      <td>-0.017345</td>\n",
              "      <td>-0.019958</td>\n",
              "      <td>-0.007474</td>\n",
              "      <td>-0.014848</td>\n",
              "      <td>-0.002137</td>\n",
              "      <td>0.005139</td>\n",
              "      <td>-0.006405</td>\n",
              "      <td>-0.009461</td>\n",
              "      <td>-0.014857</td>\n",
              "      <td>-0.006765</td>\n",
              "      <td>0.002602</td>\n",
              "      <td>-0.008044</td>\n",
              "      <td>-0.010784</td>\n",
              "      <td>...</td>\n",
              "      <td>0.004923</td>\n",
              "      <td>0.006026</td>\n",
              "      <td>0.004961</td>\n",
              "      <td>-0.017587</td>\n",
              "      <td>-0.003443</td>\n",
              "      <td>0.008302</td>\n",
              "      <td>-0.007146</td>\n",
              "      <td>-0.018913</td>\n",
              "      <td>0.002065</td>\n",
              "      <td>-0.002943</td>\n",
              "      <td>0.003518</td>\n",
              "      <td>-0.017397</td>\n",
              "      <td>-0.002747</td>\n",
              "      <td>-0.022236</td>\n",
              "      <td>-0.028737</td>\n",
              "      <td>-0.010837</td>\n",
              "      <td>0.007490</td>\n",
              "      <td>-0.005074</td>\n",
              "      <td>-0.006932</td>\n",
              "      <td>-0.005305</td>\n",
              "      <td>-0.007943</td>\n",
              "      <td>-0.017530</td>\n",
              "      <td>-0.021214</td>\n",
              "      <td>0.004635</td>\n",
              "      <td>-0.014563</td>\n",
              "      <td>-0.009206</td>\n",
              "      <td>-0.010003</td>\n",
              "      <td>0.000363</td>\n",
              "      <td>-0.007183</td>\n",
              "      <td>-0.005363</td>\n",
              "      <td>-0.000398</td>\n",
              "      <td>-0.003257</td>\n",
              "      <td>0.006724</td>\n",
              "      <td>-0.018731</td>\n",
              "      <td>-0.001307</td>\n",
              "      <td>0.002004</td>\n",
              "      <td>-0.005789</td>\n",
              "      <td>-0.025852</td>\n",
              "      <td>-0.004688</td>\n",
              "      <td>0.012297</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-22</th>\n",
              "      <td>0.005677</td>\n",
              "      <td>-0.005461</td>\n",
              "      <td>0.012553</td>\n",
              "      <td>0.022854</td>\n",
              "      <td>-0.005496</td>\n",
              "      <td>0.013437</td>\n",
              "      <td>0.006629</td>\n",
              "      <td>0.002630</td>\n",
              "      <td>0.005475</td>\n",
              "      <td>0.016670</td>\n",
              "      <td>0.003230</td>\n",
              "      <td>0.004085</td>\n",
              "      <td>0.007786</td>\n",
              "      <td>0.006202</td>\n",
              "      <td>0.003948</td>\n",
              "      <td>-0.001786</td>\n",
              "      <td>-0.009368</td>\n",
              "      <td>0.001091</td>\n",
              "      <td>-0.003248</td>\n",
              "      <td>-0.001073</td>\n",
              "      <td>-0.003426</td>\n",
              "      <td>0.003418</td>\n",
              "      <td>-0.006100</td>\n",
              "      <td>-0.009467</td>\n",
              "      <td>-0.017322</td>\n",
              "      <td>-0.023968</td>\n",
              "      <td>-0.009765</td>\n",
              "      <td>-0.001972</td>\n",
              "      <td>0.012583</td>\n",
              "      <td>0.061075</td>\n",
              "      <td>0.010458</td>\n",
              "      <td>-0.001127</td>\n",
              "      <td>-0.004772</td>\n",
              "      <td>-0.014014</td>\n",
              "      <td>-0.005554</td>\n",
              "      <td>0.005546</td>\n",
              "      <td>0.010746</td>\n",
              "      <td>0.016338</td>\n",
              "      <td>-0.001125</td>\n",
              "      <td>-0.003908</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.015309</td>\n",
              "      <td>-0.009812</td>\n",
              "      <td>0.006776</td>\n",
              "      <td>-0.007312</td>\n",
              "      <td>0.006000</td>\n",
              "      <td>0.004230</td>\n",
              "      <td>0.007420</td>\n",
              "      <td>-0.004744</td>\n",
              "      <td>-0.005725</td>\n",
              "      <td>-0.015415</td>\n",
              "      <td>0.008340</td>\n",
              "      <td>-0.014543</td>\n",
              "      <td>0.008076</td>\n",
              "      <td>-0.000287</td>\n",
              "      <td>0.005529</td>\n",
              "      <td>-0.019261</td>\n",
              "      <td>0.005575</td>\n",
              "      <td>0.010715</td>\n",
              "      <td>-0.009184</td>\n",
              "      <td>-0.005577</td>\n",
              "      <td>0.054327</td>\n",
              "      <td>-0.000348</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.009666</td>\n",
              "      <td>0.001080</td>\n",
              "      <td>-0.001225</td>\n",
              "      <td>0.002911</td>\n",
              "      <td>0.001814</td>\n",
              "      <td>-0.009441</td>\n",
              "      <td>0.000000</td>\n",
              "      <td>0.001993</td>\n",
              "      <td>-0.006238</td>\n",
              "      <td>0.004250</td>\n",
              "      <td>-0.000987</td>\n",
              "      <td>0.012430</td>\n",
              "      <td>0.001067</td>\n",
              "      <td>-0.007764</td>\n",
              "      <td>-0.007582</td>\n",
              "      <td>0.006665</td>\n",
              "      <td>-0.018872</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-23</th>\n",
              "      <td>0.011579</td>\n",
              "      <td>0.025320</td>\n",
              "      <td>-0.007930</td>\n",
              "      <td>0.007818</td>\n",
              "      <td>0.008936</td>\n",
              "      <td>0.002652</td>\n",
              "      <td>0.007608</td>\n",
              "      <td>0.000103</td>\n",
              "      <td>-0.002171</td>\n",
              "      <td>0.018775</td>\n",
              "      <td>0.003962</td>\n",
              "      <td>0.004607</td>\n",
              "      <td>0.015320</td>\n",
              "      <td>-0.003639</td>\n",
              "      <td>-0.000655</td>\n",
              "      <td>-0.006819</td>\n",
              "      <td>-0.013002</td>\n",
              "      <td>0.002361</td>\n",
              "      <td>-0.004550</td>\n",
              "      <td>0.007337</td>\n",
              "      <td>0.005865</td>\n",
              "      <td>0.008607</td>\n",
              "      <td>0.007671</td>\n",
              "      <td>0.006533</td>\n",
              "      <td>0.019131</td>\n",
              "      <td>-0.005502</td>\n",
              "      <td>0.035470</td>\n",
              "      <td>0.002964</td>\n",
              "      <td>0.000818</td>\n",
              "      <td>0.005914</td>\n",
              "      <td>0.019482</td>\n",
              "      <td>0.013430</td>\n",
              "      <td>0.024201</td>\n",
              "      <td>0.000682</td>\n",
              "      <td>0.008514</td>\n",
              "      <td>0.000484</td>\n",
              "      <td>0.004462</td>\n",
              "      <td>0.008227</td>\n",
              "      <td>0.002684</td>\n",
              "      <td>0.002839</td>\n",
              "      <td>...</td>\n",
              "      <td>0.018035</td>\n",
              "      <td>-0.002074</td>\n",
              "      <td>0.012114</td>\n",
              "      <td>0.031750</td>\n",
              "      <td>0.012651</td>\n",
              "      <td>0.014968</td>\n",
              "      <td>0.001828</td>\n",
              "      <td>0.005977</td>\n",
              "      <td>0.016467</td>\n",
              "      <td>0.000999</td>\n",
              "      <td>0.005035</td>\n",
              "      <td>0.010908</td>\n",
              "      <td>-0.000926</td>\n",
              "      <td>0.006664</td>\n",
              "      <td>0.011443</td>\n",
              "      <td>-0.000360</td>\n",
              "      <td>0.021751</td>\n",
              "      <td>0.012036</td>\n",
              "      <td>0.013163</td>\n",
              "      <td>0.005398</td>\n",
              "      <td>0.012114</td>\n",
              "      <td>-0.006027</td>\n",
              "      <td>0.008067</td>\n",
              "      <td>0.015448</td>\n",
              "      <td>-0.039636</td>\n",
              "      <td>0.005111</td>\n",
              "      <td>0.000512</td>\n",
              "      <td>-0.011224</td>\n",
              "      <td>-0.006502</td>\n",
              "      <td>0.012745</td>\n",
              "      <td>0.009149</td>\n",
              "      <td>0.033331</td>\n",
              "      <td>0.014712</td>\n",
              "      <td>-0.004942</td>\n",
              "      <td>0.024556</td>\n",
              "      <td>0.003996</td>\n",
              "      <td>0.004980</td>\n",
              "      <td>0.020276</td>\n",
              "      <td>-0.003178</td>\n",
              "      <td>-0.053062</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-24</th>\n",
              "      <td>-0.004436</td>\n",
              "      <td>0.025588</td>\n",
              "      <td>0.005455</td>\n",
              "      <td>-0.000814</td>\n",
              "      <td>0.012586</td>\n",
              "      <td>0.042581</td>\n",
              "      <td>-0.001690</td>\n",
              "      <td>0.000051</td>\n",
              "      <td>0.007763</td>\n",
              "      <td>0.039360</td>\n",
              "      <td>0.000740</td>\n",
              "      <td>-0.004169</td>\n",
              "      <td>0.014573</td>\n",
              "      <td>0.022210</td>\n",
              "      <td>0.002624</td>\n",
              "      <td>0.001126</td>\n",
              "      <td>0.002395</td>\n",
              "      <td>-0.023011</td>\n",
              "      <td>-0.005621</td>\n",
              "      <td>0.019542</td>\n",
              "      <td>-0.002614</td>\n",
              "      <td>0.011556</td>\n",
              "      <td>0.004568</td>\n",
              "      <td>0.002644</td>\n",
              "      <td>0.012738</td>\n",
              "      <td>0.008060</td>\n",
              "      <td>0.007220</td>\n",
              "      <td>0.005615</td>\n",
              "      <td>-0.011844</td>\n",
              "      <td>0.021752</td>\n",
              "      <td>0.018513</td>\n",
              "      <td>0.002004</td>\n",
              "      <td>0.016719</td>\n",
              "      <td>-0.001364</td>\n",
              "      <td>0.015939</td>\n",
              "      <td>-0.009720</td>\n",
              "      <td>0.003169</td>\n",
              "      <td>0.008019</td>\n",
              "      <td>-0.045210</td>\n",
              "      <td>0.006074</td>\n",
              "      <td>...</td>\n",
              "      <td>0.003054</td>\n",
              "      <td>0.006639</td>\n",
              "      <td>0.086634</td>\n",
              "      <td>0.039143</td>\n",
              "      <td>0.009995</td>\n",
              "      <td>-0.005113</td>\n",
              "      <td>0.013433</td>\n",
              "      <td>0.006393</td>\n",
              "      <td>0.012009</td>\n",
              "      <td>0.023627</td>\n",
              "      <td>0.016579</td>\n",
              "      <td>0.003332</td>\n",
              "      <td>0.005099</td>\n",
              "      <td>-0.010842</td>\n",
              "      <td>-0.002645</td>\n",
              "      <td>0.008832</td>\n",
              "      <td>0.014053</td>\n",
              "      <td>-0.000503</td>\n",
              "      <td>0.010064</td>\n",
              "      <td>0.016875</td>\n",
              "      <td>0.024652</td>\n",
              "      <td>0.000466</td>\n",
              "      <td>-0.007525</td>\n",
              "      <td>0.026570</td>\n",
              "      <td>0.028778</td>\n",
              "      <td>0.002746</td>\n",
              "      <td>-0.011861</td>\n",
              "      <td>-0.015013</td>\n",
              "      <td>-0.000807</td>\n",
              "      <td>0.010649</td>\n",
              "      <td>0.006701</td>\n",
              "      <td>0.018876</td>\n",
              "      <td>0.002979</td>\n",
              "      <td>0.000828</td>\n",
              "      <td>0.038158</td>\n",
              "      <td>-0.000133</td>\n",
              "      <td>0.001593</td>\n",
              "      <td>0.010657</td>\n",
              "      <td>-0.002303</td>\n",
              "      <td>0.015877</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-25</th>\n",
              "      <td>0.003880</td>\n",
              "      <td>-0.084421</td>\n",
              "      <td>-0.053438</td>\n",
              "      <td>-0.007907</td>\n",
              "      <td>-0.011048</td>\n",
              "      <td>-0.013517</td>\n",
              "      <td>-0.006660</td>\n",
              "      <td>0.002571</td>\n",
              "      <td>-0.004963</td>\n",
              "      <td>-0.019737</td>\n",
              "      <td>0.002711</td>\n",
              "      <td>-0.000897</td>\n",
              "      <td>-0.004449</td>\n",
              "      <td>-0.020690</td>\n",
              "      <td>-0.002355</td>\n",
              "      <td>-0.005959</td>\n",
              "      <td>0.001792</td>\n",
              "      <td>-0.002782</td>\n",
              "      <td>-0.005777</td>\n",
              "      <td>-0.005402</td>\n",
              "      <td>0.000806</td>\n",
              "      <td>-0.003866</td>\n",
              "      <td>-0.005630</td>\n",
              "      <td>-0.008631</td>\n",
              "      <td>-0.012181</td>\n",
              "      <td>-0.269879</td>\n",
              "      <td>-0.026079</td>\n",
              "      <td>-0.000392</td>\n",
              "      <td>-0.024304</td>\n",
              "      <td>-0.025316</td>\n",
              "      <td>-0.012899</td>\n",
              "      <td>-0.008335</td>\n",
              "      <td>-0.024446</td>\n",
              "      <td>-0.009444</td>\n",
              "      <td>-0.029650</td>\n",
              "      <td>0.003076</td>\n",
              "      <td>-0.013490</td>\n",
              "      <td>-0.007955</td>\n",
              "      <td>0.017445</td>\n",
              "      <td>0.004912</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.009440</td>\n",
              "      <td>-0.006653</td>\n",
              "      <td>0.033744</td>\n",
              "      <td>0.008766</td>\n",
              "      <td>-0.000530</td>\n",
              "      <td>0.015717</td>\n",
              "      <td>-0.009491</td>\n",
              "      <td>-0.095060</td>\n",
              "      <td>0.000112</td>\n",
              "      <td>0.002276</td>\n",
              "      <td>-0.031679</td>\n",
              "      <td>-0.004745</td>\n",
              "      <td>-0.004566</td>\n",
              "      <td>-0.021807</td>\n",
              "      <td>-0.005745</td>\n",
              "      <td>0.006968</td>\n",
              "      <td>-0.017426</td>\n",
              "      <td>-0.001144</td>\n",
              "      <td>-0.007971</td>\n",
              "      <td>-0.019098</td>\n",
              "      <td>-0.006799</td>\n",
              "      <td>0.000699</td>\n",
              "      <td>-0.005536</td>\n",
              "      <td>-0.007514</td>\n",
              "      <td>0.002866</td>\n",
              "      <td>-0.002688</td>\n",
              "      <td>0.007945</td>\n",
              "      <td>-0.021561</td>\n",
              "      <td>0.001974</td>\n",
              "      <td>-0.001916</td>\n",
              "      <td>-0.018403</td>\n",
              "      <td>-0.021224</td>\n",
              "      <td>-0.041386</td>\n",
              "      <td>-0.004466</td>\n",
              "      <td>-0.034402</td>\n",
              "      <td>-0.005706</td>\n",
              "      <td>-0.013251</td>\n",
              "      <td>-0.015674</td>\n",
              "      <td>0.002042</td>\n",
              "      <td>0.017008</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-26</th>\n",
              "      <td>-0.005011</td>\n",
              "      <td>-0.013625</td>\n",
              "      <td>0.017263</td>\n",
              "      <td>0.003478</td>\n",
              "      <td>0.002211</td>\n",
              "      <td>0.001653</td>\n",
              "      <td>-0.002841</td>\n",
              "      <td>0.010053</td>\n",
              "      <td>0.008227</td>\n",
              "      <td>-0.003110</td>\n",
              "      <td>-0.002212</td>\n",
              "      <td>0.013229</td>\n",
              "      <td>0.014236</td>\n",
              "      <td>-0.011358</td>\n",
              "      <td>0.004459</td>\n",
              "      <td>-0.001357</td>\n",
              "      <td>0.001789</td>\n",
              "      <td>0.002232</td>\n",
              "      <td>0.005811</td>\n",
              "      <td>0.003329</td>\n",
              "      <td>0.003827</td>\n",
              "      <td>0.009351</td>\n",
              "      <td>0.005226</td>\n",
              "      <td>0.014752</td>\n",
              "      <td>-0.000402</td>\n",
              "      <td>-0.010254</td>\n",
              "      <td>0.016599</td>\n",
              "      <td>0.008722</td>\n",
              "      <td>-0.028806</td>\n",
              "      <td>-0.001574</td>\n",
              "      <td>0.010395</td>\n",
              "      <td>0.000560</td>\n",
              "      <td>0.007978</td>\n",
              "      <td>0.007064</td>\n",
              "      <td>0.020143</td>\n",
              "      <td>-0.004041</td>\n",
              "      <td>-0.015589</td>\n",
              "      <td>-0.000422</td>\n",
              "      <td>0.020514</td>\n",
              "      <td>-0.011609</td>\n",
              "      <td>...</td>\n",
              "      <td>0.013833</td>\n",
              "      <td>0.005889</td>\n",
              "      <td>0.019704</td>\n",
              "      <td>-0.001018</td>\n",
              "      <td>0.014498</td>\n",
              "      <td>-0.005353</td>\n",
              "      <td>0.011565</td>\n",
              "      <td>-0.002725</td>\n",
              "      <td>-0.008171</td>\n",
              "      <td>0.004541</td>\n",
              "      <td>0.010420</td>\n",
              "      <td>0.005244</td>\n",
              "      <td>0.003382</td>\n",
              "      <td>-0.016100</td>\n",
              "      <td>-0.006816</td>\n",
              "      <td>0.012775</td>\n",
              "      <td>0.001676</td>\n",
              "      <td>-0.002841</td>\n",
              "      <td>0.005296</td>\n",
              "      <td>0.015800</td>\n",
              "      <td>-0.008250</td>\n",
              "      <td>0.009317</td>\n",
              "      <td>0.006051</td>\n",
              "      <td>0.025237</td>\n",
              "      <td>0.013266</td>\n",
              "      <td>0.012865</td>\n",
              "      <td>0.015250</td>\n",
              "      <td>-0.045213</td>\n",
              "      <td>0.007164</td>\n",
              "      <td>0.011036</td>\n",
              "      <td>0.045473</td>\n",
              "      <td>0.011168</td>\n",
              "      <td>-0.003718</td>\n",
              "      <td>0.005316</td>\n",
              "      <td>-0.053480</td>\n",
              "      <td>-0.001601</td>\n",
              "      <td>0.003044</td>\n",
              "      <td>-0.003185</td>\n",
              "      <td>0.010010</td>\n",
              "      <td>0.020565</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-29</th>\n",
              "      <td>0.012518</td>\n",
              "      <td>-0.016062</td>\n",
              "      <td>0.002752</td>\n",
              "      <td>0.009339</td>\n",
              "      <td>0.012889</td>\n",
              "      <td>0.011993</td>\n",
              "      <td>0.009117</td>\n",
              "      <td>0.002133</td>\n",
              "      <td>-0.013011</td>\n",
              "      <td>-0.004844</td>\n",
              "      <td>0.007637</td>\n",
              "      <td>-0.008035</td>\n",
              "      <td>-0.008309</td>\n",
              "      <td>-0.031073</td>\n",
              "      <td>0.003395</td>\n",
              "      <td>0.008835</td>\n",
              "      <td>0.007143</td>\n",
              "      <td>-0.017257</td>\n",
              "      <td>-0.000062</td>\n",
              "      <td>-0.013794</td>\n",
              "      <td>0.008226</td>\n",
              "      <td>-0.008740</td>\n",
              "      <td>-0.003574</td>\n",
              "      <td>-0.004766</td>\n",
              "      <td>-0.019979</td>\n",
              "      <td>-0.014031</td>\n",
              "      <td>-0.014633</td>\n",
              "      <td>-0.010881</td>\n",
              "      <td>-0.019803</td>\n",
              "      <td>-0.001380</td>\n",
              "      <td>-0.015873</td>\n",
              "      <td>-0.008177</td>\n",
              "      <td>-0.037793</td>\n",
              "      <td>0.004220</td>\n",
              "      <td>-0.001276</td>\n",
              "      <td>0.004790</td>\n",
              "      <td>-0.015748</td>\n",
              "      <td>-0.011682</td>\n",
              "      <td>-0.005534</td>\n",
              "      <td>0.006285</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.014554</td>\n",
              "      <td>0.018768</td>\n",
              "      <td>-0.015177</td>\n",
              "      <td>0.010814</td>\n",
              "      <td>-0.005577</td>\n",
              "      <td>0.000664</td>\n",
              "      <td>-0.002613</td>\n",
              "      <td>-0.009026</td>\n",
              "      <td>-0.003160</td>\n",
              "      <td>0.000323</td>\n",
              "      <td>-0.003358</td>\n",
              "      <td>0.004900</td>\n",
              "      <td>-0.004802</td>\n",
              "      <td>-0.003596</td>\n",
              "      <td>0.007758</td>\n",
              "      <td>0.005081</td>\n",
              "      <td>-0.010316</td>\n",
              "      <td>0.006938</td>\n",
              "      <td>0.001272</td>\n",
              "      <td>0.009911</td>\n",
              "      <td>-0.012566</td>\n",
              "      <td>0.009693</td>\n",
              "      <td>0.006977</td>\n",
              "      <td>-0.020718</td>\n",
              "      <td>0.000470</td>\n",
              "      <td>0.000904</td>\n",
              "      <td>-0.004557</td>\n",
              "      <td>-0.013530</td>\n",
              "      <td>-0.006668</td>\n",
              "      <td>0.003322</td>\n",
              "      <td>-0.014117</td>\n",
              "      <td>-0.008320</td>\n",
              "      <td>-0.004147</td>\n",
              "      <td>0.007767</td>\n",
              "      <td>-0.001828</td>\n",
              "      <td>0.007085</td>\n",
              "      <td>0.006248</td>\n",
              "      <td>-0.014232</td>\n",
              "      <td>0.000702</td>\n",
              "      <td>-0.011293</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-30</th>\n",
              "      <td>-0.003126</td>\n",
              "      <td>-0.000979</td>\n",
              "      <td>-0.008102</td>\n",
              "      <td>-0.004292</td>\n",
              "      <td>0.017081</td>\n",
              "      <td>0.011960</td>\n",
              "      <td>-0.002710</td>\n",
              "      <td>-0.008614</td>\n",
              "      <td>-0.011653</td>\n",
              "      <td>-0.002063</td>\n",
              "      <td>0.001222</td>\n",
              "      <td>-0.017331</td>\n",
              "      <td>0.001396</td>\n",
              "      <td>-0.015236</td>\n",
              "      <td>-0.008328</td>\n",
              "      <td>-0.011339</td>\n",
              "      <td>0.005319</td>\n",
              "      <td>-0.001511</td>\n",
              "      <td>-0.000621</td>\n",
              "      <td>-0.002833</td>\n",
              "      <td>-0.004378</td>\n",
              "      <td>0.010492</td>\n",
              "      <td>-0.002065</td>\n",
              "      <td>0.006106</td>\n",
              "      <td>0.006978</td>\n",
              "      <td>0.036725</td>\n",
              "      <td>0.000625</td>\n",
              "      <td>0.000196</td>\n",
              "      <td>0.018601</td>\n",
              "      <td>0.001184</td>\n",
              "      <td>0.011649</td>\n",
              "      <td>0.024845</td>\n",
              "      <td>0.001506</td>\n",
              "      <td>0.002101</td>\n",
              "      <td>-0.008069</td>\n",
              "      <td>0.014983</td>\n",
              "      <td>-0.007279</td>\n",
              "      <td>-0.013576</td>\n",
              "      <td>0.004425</td>\n",
              "      <td>-0.013361</td>\n",
              "      <td>...</td>\n",
              "      <td>0.009231</td>\n",
              "      <td>0.010141</td>\n",
              "      <td>0.008926</td>\n",
              "      <td>0.007442</td>\n",
              "      <td>0.001402</td>\n",
              "      <td>-0.003095</td>\n",
              "      <td>-0.009170</td>\n",
              "      <td>-0.006434</td>\n",
              "      <td>-0.001925</td>\n",
              "      <td>-0.000646</td>\n",
              "      <td>0.009024</td>\n",
              "      <td>0.004247</td>\n",
              "      <td>-0.007470</td>\n",
              "      <td>0.019912</td>\n",
              "      <td>0.002221</td>\n",
              "      <td>-0.012899</td>\n",
              "      <td>0.094520</td>\n",
              "      <td>-0.026558</td>\n",
              "      <td>0.005080</td>\n",
              "      <td>-0.004430</td>\n",
              "      <td>0.014339</td>\n",
              "      <td>-0.009600</td>\n",
              "      <td>0.002867</td>\n",
              "      <td>0.005656</td>\n",
              "      <td>0.011677</td>\n",
              "      <td>-0.009380</td>\n",
              "      <td>0.000424</td>\n",
              "      <td>0.009278</td>\n",
              "      <td>-0.001880</td>\n",
              "      <td>-0.011353</td>\n",
              "      <td>0.009675</td>\n",
              "      <td>-0.019238</td>\n",
              "      <td>0.063086</td>\n",
              "      <td>-0.006396</td>\n",
              "      <td>-0.008574</td>\n",
              "      <td>0.000133</td>\n",
              "      <td>0.005322</td>\n",
              "      <td>-0.034178</td>\n",
              "      <td>-0.007537</td>\n",
              "      <td>0.018589</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-07-31</th>\n",
              "      <td>-0.010549</td>\n",
              "      <td>-0.006536</td>\n",
              "      <td>-0.007642</td>\n",
              "      <td>0.020404</td>\n",
              "      <td>-0.017696</td>\n",
              "      <td>-0.002399</td>\n",
              "      <td>-0.013702</td>\n",
              "      <td>-0.015691</td>\n",
              "      <td>-0.015742</td>\n",
              "      <td>-0.028935</td>\n",
              "      <td>0.003175</td>\n",
              "      <td>0.009212</td>\n",
              "      <td>-0.005388</td>\n",
              "      <td>-0.025703</td>\n",
              "      <td>-0.006823</td>\n",
              "      <td>-0.010334</td>\n",
              "      <td>-0.012934</td>\n",
              "      <td>-0.004539</td>\n",
              "      <td>-0.002300</td>\n",
              "      <td>-0.005859</td>\n",
              "      <td>-0.009794</td>\n",
              "      <td>-0.010907</td>\n",
              "      <td>-0.015031</td>\n",
              "      <td>0.048792</td>\n",
              "      <td>-0.008696</td>\n",
              "      <td>0.028684</td>\n",
              "      <td>-0.010155</td>\n",
              "      <td>0.054699</td>\n",
              "      <td>-0.010135</td>\n",
              "      <td>-0.026809</td>\n",
              "      <td>-0.100974</td>\n",
              "      <td>-0.012562</td>\n",
              "      <td>-0.011453</td>\n",
              "      <td>0.057410</td>\n",
              "      <td>-0.020338</td>\n",
              "      <td>0.014234</td>\n",
              "      <td>-0.016723</td>\n",
              "      <td>-0.022522</td>\n",
              "      <td>-0.016787</td>\n",
              "      <td>-0.018056</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.025915</td>\n",
              "      <td>0.003625</td>\n",
              "      <td>-0.002838</td>\n",
              "      <td>-0.026164</td>\n",
              "      <td>0.000175</td>\n",
              "      <td>-0.012565</td>\n",
              "      <td>-0.019446</td>\n",
              "      <td>-0.012868</td>\n",
              "      <td>-0.008734</td>\n",
              "      <td>-0.019703</td>\n",
              "      <td>0.005485</td>\n",
              "      <td>-0.002976</td>\n",
              "      <td>-0.013275</td>\n",
              "      <td>-0.017223</td>\n",
              "      <td>-0.006056</td>\n",
              "      <td>-0.024016</td>\n",
              "      <td>-0.001802</td>\n",
              "      <td>-0.012938</td>\n",
              "      <td>-0.016426</td>\n",
              "      <td>-0.016873</td>\n",
              "      <td>-0.047712</td>\n",
              "      <td>-0.013847</td>\n",
              "      <td>-0.009887</td>\n",
              "      <td>-0.002916</td>\n",
              "      <td>-0.034959</td>\n",
              "      <td>-0.011494</td>\n",
              "      <td>-0.008559</td>\n",
              "      <td>-0.015188</td>\n",
              "      <td>-0.014976</td>\n",
              "      <td>0.004785</td>\n",
              "      <td>-0.026064</td>\n",
              "      <td>-0.040852</td>\n",
              "      <td>-0.007638</td>\n",
              "      <td>-0.016174</td>\n",
              "      <td>-0.044332</td>\n",
              "      <td>-0.013139</td>\n",
              "      <td>-0.039174</td>\n",
              "      <td>-0.020744</td>\n",
              "      <td>-0.006358</td>\n",
              "      <td>-0.009015</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-08-01</th>\n",
              "      <td>-0.002881</td>\n",
              "      <td>-0.021711</td>\n",
              "      <td>-0.004580</td>\n",
              "      <td>-0.021639</td>\n",
              "      <td>0.052209</td>\n",
              "      <td>-0.264539</td>\n",
              "      <td>-0.011711</td>\n",
              "      <td>0.008204</td>\n",
              "      <td>-0.001405</td>\n",
              "      <td>-0.025541</td>\n",
              "      <td>0.001704</td>\n",
              "      <td>-0.013332</td>\n",
              "      <td>-0.005608</td>\n",
              "      <td>-0.017289</td>\n",
              "      <td>0.012551</td>\n",
              "      <td>0.011474</td>\n",
              "      <td>0.030375</td>\n",
              "      <td>-0.006269</td>\n",
              "      <td>0.002555</td>\n",
              "      <td>-0.022861</td>\n",
              "      <td>0.000404</td>\n",
              "      <td>-0.014203</td>\n",
              "      <td>-0.005087</td>\n",
              "      <td>0.022467</td>\n",
              "      <td>-0.046190</td>\n",
              "      <td>-0.032189</td>\n",
              "      <td>-0.003472</td>\n",
              "      <td>-0.023464</td>\n",
              "      <td>0.014300</td>\n",
              "      <td>-0.018230</td>\n",
              "      <td>-0.019376</td>\n",
              "      <td>-0.014396</td>\n",
              "      <td>-0.035576</td>\n",
              "      <td>-0.003109</td>\n",
              "      <td>-0.034046</td>\n",
              "      <td>-0.000992</td>\n",
              "      <td>-0.006139</td>\n",
              "      <td>-0.009403</td>\n",
              "      <td>-0.005635</td>\n",
              "      <td>0.003804</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.063850</td>\n",
              "      <td>-0.027452</td>\n",
              "      <td>-0.020842</td>\n",
              "      <td>-0.044804</td>\n",
              "      <td>-0.025547</td>\n",
              "      <td>-0.013174</td>\n",
              "      <td>0.006573</td>\n",
              "      <td>0.011246</td>\n",
              "      <td>-0.046001</td>\n",
              "      <td>-0.014168</td>\n",
              "      <td>-0.010674</td>\n",
              "      <td>-0.012412</td>\n",
              "      <td>0.008101</td>\n",
              "      <td>0.076041</td>\n",
              "      <td>0.005647</td>\n",
              "      <td>-0.000181</td>\n",
              "      <td>-0.022176</td>\n",
              "      <td>0.005699</td>\n",
              "      <td>-0.007708</td>\n",
              "      <td>-0.009956</td>\n",
              "      <td>0.030061</td>\n",
              "      <td>0.020126</td>\n",
              "      <td>0.006978</td>\n",
              "      <td>-0.027784</td>\n",
              "      <td>-0.038218</td>\n",
              "      <td>0.004200</td>\n",
              "      <td>-0.006410</td>\n",
              "      <td>0.035714</td>\n",
              "      <td>-0.009104</td>\n",
              "      <td>0.004286</td>\n",
              "      <td>-0.014955</td>\n",
              "      <td>-0.054970</td>\n",
              "      <td>-0.068088</td>\n",
              "      <td>0.019292</td>\n",
              "      <td>-0.006589</td>\n",
              "      <td>-0.025551</td>\n",
              "      <td>-0.020018</td>\n",
              "      <td>-0.014330</td>\n",
              "      <td>0.039282</td>\n",
              "      <td>-0.047260</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-08-02</th>\n",
              "      <td>-0.016327</td>\n",
              "      <td>-0.013114</td>\n",
              "      <td>-0.027809</td>\n",
              "      <td>-0.021158</td>\n",
              "      <td>-0.013740</td>\n",
              "      <td>-0.020745</td>\n",
              "      <td>-0.003020</td>\n",
              "      <td>-0.005923</td>\n",
              "      <td>-0.015849</td>\n",
              "      <td>-0.015551</td>\n",
              "      <td>-0.026245</td>\n",
              "      <td>-0.000183</td>\n",
              "      <td>-0.001794</td>\n",
              "      <td>-0.037206</td>\n",
              "      <td>-0.011743</td>\n",
              "      <td>-0.001248</td>\n",
              "      <td>-0.027168</td>\n",
              "      <td>0.004206</td>\n",
              "      <td>0.000684</td>\n",
              "      <td>-0.006946</td>\n",
              "      <td>0.013519</td>\n",
              "      <td>-0.005996</td>\n",
              "      <td>0.001223</td>\n",
              "      <td>-0.019865</td>\n",
              "      <td>-0.013077</td>\n",
              "      <td>-0.014678</td>\n",
              "      <td>0.002059</td>\n",
              "      <td>-0.003528</td>\n",
              "      <td>-0.022365</td>\n",
              "      <td>-0.018981</td>\n",
              "      <td>-0.014066</td>\n",
              "      <td>-0.020607</td>\n",
              "      <td>-0.019536</td>\n",
              "      <td>0.006559</td>\n",
              "      <td>-0.030733</td>\n",
              "      <td>0.019204</td>\n",
              "      <td>-0.017291</td>\n",
              "      <td>-0.029124</td>\n",
              "      <td>-0.008124</td>\n",
              "      <td>0.005632</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.007355</td>\n",
              "      <td>-0.008514</td>\n",
              "      <td>0.001881</td>\n",
              "      <td>-0.029782</td>\n",
              "      <td>-0.004669</td>\n",
              "      <td>-0.007812</td>\n",
              "      <td>-0.009767</td>\n",
              "      <td>-0.020052</td>\n",
              "      <td>-0.007077</td>\n",
              "      <td>-0.004679</td>\n",
              "      <td>-0.026972</td>\n",
              "      <td>-0.000159</td>\n",
              "      <td>-0.015648</td>\n",
              "      <td>-0.005020</td>\n",
              "      <td>0.017142</td>\n",
              "      <td>0.005972</td>\n",
              "      <td>-0.008175</td>\n",
              "      <td>-0.010578</td>\n",
              "      <td>-0.007213</td>\n",
              "      <td>-0.003938</td>\n",
              "      <td>-0.020177</td>\n",
              "      <td>-0.007112</td>\n",
              "      <td>0.012664</td>\n",
              "      <td>0.007950</td>\n",
              "      <td>-0.031018</td>\n",
              "      <td>-0.003367</td>\n",
              "      <td>0.004129</td>\n",
              "      <td>-0.019984</td>\n",
              "      <td>0.000184</td>\n",
              "      <td>0.034614</td>\n",
              "      <td>0.002797</td>\n",
              "      <td>-0.026196</td>\n",
              "      <td>-0.012071</td>\n",
              "      <td>-0.015471</td>\n",
              "      <td>-0.028920</td>\n",
              "      <td>-0.009799</td>\n",
              "      <td>-0.010682</td>\n",
              "      <td>-0.033502</td>\n",
              "      <td>0.003506</td>\n",
              "      <td>-0.009082</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-08-05</th>\n",
              "      <td>-0.032609</td>\n",
              "      <td>-0.031346</td>\n",
              "      <td>-0.017972</td>\n",
              "      <td>-0.052348</td>\n",
              "      <td>-0.019239</td>\n",
              "      <td>0.019490</td>\n",
              "      <td>-0.030995</td>\n",
              "      <td>-0.038651</td>\n",
              "      <td>-0.045453</td>\n",
              "      <td>-0.044817</td>\n",
              "      <td>-0.057150</td>\n",
              "      <td>-0.027516</td>\n",
              "      <td>-0.023305</td>\n",
              "      <td>-0.028357</td>\n",
              "      <td>-0.009110</td>\n",
              "      <td>-0.007724</td>\n",
              "      <td>-0.030303</td>\n",
              "      <td>-0.022273</td>\n",
              "      <td>-0.002422</td>\n",
              "      <td>-0.027977</td>\n",
              "      <td>-0.028668</td>\n",
              "      <td>-0.026467</td>\n",
              "      <td>-0.040298</td>\n",
              "      <td>-0.048800</td>\n",
              "      <td>-0.047612</td>\n",
              "      <td>-0.055221</td>\n",
              "      <td>-0.027659</td>\n",
              "      <td>-0.026122</td>\n",
              "      <td>-0.039523</td>\n",
              "      <td>-0.043954</td>\n",
              "      <td>-0.049253</td>\n",
              "      <td>-0.027977</td>\n",
              "      <td>-0.026238</td>\n",
              "      <td>-0.030552</td>\n",
              "      <td>-0.035846</td>\n",
              "      <td>-0.007286</td>\n",
              "      <td>-0.031872</td>\n",
              "      <td>-0.026619</td>\n",
              "      <td>-0.023919</td>\n",
              "      <td>-0.040777</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.033681</td>\n",
              "      <td>-0.038497</td>\n",
              "      <td>-0.020051</td>\n",
              "      <td>-0.033510</td>\n",
              "      <td>-0.042937</td>\n",
              "      <td>-0.038682</td>\n",
              "      <td>-0.048247</td>\n",
              "      <td>-0.040237</td>\n",
              "      <td>-0.028026</td>\n",
              "      <td>-0.016118</td>\n",
              "      <td>-0.066404</td>\n",
              "      <td>-0.028799</td>\n",
              "      <td>-0.043777</td>\n",
              "      <td>-0.015864</td>\n",
              "      <td>-0.013947</td>\n",
              "      <td>-0.006656</td>\n",
              "      <td>-0.037756</td>\n",
              "      <td>-0.024866</td>\n",
              "      <td>-0.033718</td>\n",
              "      <td>-0.030748</td>\n",
              "      <td>-0.030153</td>\n",
              "      <td>0.005430</td>\n",
              "      <td>0.000944</td>\n",
              "      <td>-0.027286</td>\n",
              "      <td>-0.017849</td>\n",
              "      <td>-0.034139</td>\n",
              "      <td>-0.025358</td>\n",
              "      <td>-0.049180</td>\n",
              "      <td>-0.032703</td>\n",
              "      <td>-0.035289</td>\n",
              "      <td>-0.025100</td>\n",
              "      <td>-0.071846</td>\n",
              "      <td>-0.037085</td>\n",
              "      <td>-0.003176</td>\n",
              "      <td>-0.028780</td>\n",
              "      <td>-0.020488</td>\n",
              "      <td>-0.024626</td>\n",
              "      <td>-0.040549</td>\n",
              "      <td>-0.019429</td>\n",
              "      <td>-0.032197</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2019-08-06</th>\n",
              "      <td>0.027331</td>\n",
              "      <td>-0.002462</td>\n",
              "      <td>0.017323</td>\n",
              "      <td>0.018930</td>\n",
              "      <td>-0.051747</td>\n",
              "      <td>-0.019801</td>\n",
              "      <td>0.020443</td>\n",
              "      <td>0.017569</td>\n",
              "      <td>0.020866</td>\n",
              "      <td>0.015330</td>\n",
              "      <td>-0.009529</td>\n",
              "      <td>0.022786</td>\n",
              "      <td>0.008874</td>\n",
              "      <td>0.000697</td>\n",
              "      <td>-0.000666</td>\n",
              "      <td>0.012706</td>\n",
              "      <td>-0.037990</td>\n",
              "      <td>0.013045</td>\n",
              "      <td>-0.007097</td>\n",
              "      <td>0.029729</td>\n",
              "      <td>0.025825</td>\n",
              "      <td>0.013778</td>\n",
              "      <td>0.024407</td>\n",
              "      <td>0.022735</td>\n",
              "      <td>0.000612</td>\n",
              "      <td>0.000372</td>\n",
              "      <td>0.015442</td>\n",
              "      <td>0.020534</td>\n",
              "      <td>0.013809</td>\n",
              "      <td>0.019138</td>\n",
              "      <td>0.031083</td>\n",
              "      <td>0.019743</td>\n",
              "      <td>0.028470</td>\n",
              "      <td>0.016309</td>\n",
              "      <td>0.021617</td>\n",
              "      <td>0.014259</td>\n",
              "      <td>0.012860</td>\n",
              "      <td>0.043071</td>\n",
              "      <td>0.026162</td>\n",
              "      <td>0.022592</td>\n",
              "      <td>...</td>\n",
              "      <td>-0.001394</td>\n",
              "      <td>0.008931</td>\n",
              "      <td>0.001306</td>\n",
              "      <td>0.009087</td>\n",
              "      <td>0.009614</td>\n",
              "      <td>0.024254</td>\n",
              "      <td>0.021438</td>\n",
              "      <td>0.009137</td>\n",
              "      <td>0.014666</td>\n",
              "      <td>0.012287</td>\n",
              "      <td>0.013988</td>\n",
              "      <td>-0.002785</td>\n",
              "      <td>0.020270</td>\n",
              "      <td>0.007861</td>\n",
              "      <td>0.013113</td>\n",
              "      <td>-0.003079</td>\n",
              "      <td>0.008980</td>\n",
              "      <td>0.025941</td>\n",
              "      <td>-0.008097</td>\n",
              "      <td>0.008086</td>\n",
              "      <td>0.015735</td>\n",
              "      <td>0.009882</td>\n",
              "      <td>0.006719</td>\n",
              "      <td>0.017094</td>\n",
              "      <td>0.023656</td>\n",
              "      <td>0.028827</td>\n",
              "      <td>0.020480</td>\n",
              "      <td>-0.010513</td>\n",
              "      <td>0.013675</td>\n",
              "      <td>0.015677</td>\n",
              "      <td>-0.004495</td>\n",
              "      <td>0.006931</td>\n",
              "      <td>-0.021594</td>\n",
              "      <td>0.013416</td>\n",
              "      <td>-0.009190</td>\n",
              "      <td>0.009676</td>\n",
              "      <td>0.002525</td>\n",
              "      <td>-0.001704</td>\n",
              "      <td>0.008517</td>\n",
              "      <td>0.020398</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "<p>2515 rows × 450 columns</p>\n",
              "</div>"
            ],
            "text/plain": [
              "                   A       AAL       AAP  ...       XRX       YUM      ZION\n",
              "Date                                      ...                              \n",
              "2009-08-10  0.004439 -0.045902 -0.019243  ...  0.034362 -0.000981  0.051298\n",
              "2009-08-11  0.002525 -0.051546 -0.018060  ... -0.034347 -0.038310 -0.083133\n",
              "2009-08-12  0.020151  0.047101  0.008856  ...  0.008163  0.002043 -0.012484\n",
              "2009-08-13  0.008642  0.027682 -0.051767  ...  0.002313 -0.003058  0.038589\n",
              "2009-08-14 -0.022032 -0.016835 -0.002611  ... -0.006924 -0.004601  0.005766\n",
              "2009-08-17 -0.020025 -0.054795 -0.001904  ... -0.038931 -0.012327 -0.059873\n",
              "2009-08-18  0.078544  0.007246  0.000715  ...  0.010883  0.010400  0.027100\n",
              "2009-08-19 -0.006513 -0.014388  0.014296  ...  0.023325  0.002059  0.018470\n",
              "2009-08-20  0.002980  0.043796 -0.014329  ... -0.016949  0.009759  0.053756\n",
              "2009-08-21  0.008913  0.045455  0.002145  ...  0.020809  0.021363  0.036878\n",
              "2009-08-24 -0.001767  0.013378 -0.014031  ...  0.012813 -0.024402 -0.035566\n",
              "2009-08-25 -0.006490  0.082508  0.010130  ...  0.018976  0.000510 -0.000615\n",
              "2009-08-26  0.005344  0.088415 -0.006686  ...  0.000000 -0.004082 -0.007995\n",
              "2009-08-27  0.002363 -0.030812  0.008654  ...  0.013544 -0.003586  0.001240\n",
              "2009-08-28  0.011786 -0.020231  0.000715  ...  0.005568  0.000514  0.039009\n",
              "2009-08-31 -0.005824 -0.047198 -0.019052  ... -0.026578 -0.019013 -0.024434\n",
              "2009-09-01  0.006444 -0.117647 -0.017966  ... -0.022184 -0.015715 -0.070250\n",
              "2009-09-02 -0.024447  0.042105 -0.000989  ... -0.013962 -0.010644 -0.009198\n",
              "2009-09-03  0.002983  0.040404  0.002970  ...  0.010619  0.006455  0.006631\n",
              "2009-09-04  0.022606  0.038835 -0.010116  ...  0.025102  0.013896  0.021080\n",
              "2009-09-08  0.020942  0.012461  0.007228  ...  0.000000  0.004744 -0.040000\n",
              "2009-09-09  0.027920  0.046154  0.001237  ...  0.025057 -0.017314  0.006720\n",
              "2009-09-10  0.026053  0.123529 -0.022739  ...  0.057778 -0.002136 -0.014686\n",
              "2009-09-11  0.007023  0.002618 -0.035913  ... -0.021534 -0.003745 -0.002710\n",
              "2009-09-14  0.001609  0.023499  0.013379  ... -0.001074  0.001611  0.029212\n",
              "2009-09-15  0.008034  0.066327 -0.016309  ...  0.043525  0.004826  0.107591\n",
              "2009-09-16  0.011158 -0.004785 -0.006316  ...  0.001545  0.011740  0.065554\n",
              "2009-09-17 -0.005255  0.170673 -0.001854  ... -0.006684  0.005274 -0.053691\n",
              "2009-09-18 -0.004226 -0.028747  0.014858  ... -0.003106  0.015740  0.007092\n",
              "2009-09-21  0.015915  0.088795  0.021176  ... -0.004154 -0.026860 -0.011150\n",
              "...              ...       ...       ...  ...       ...       ...       ...\n",
              "2019-06-25 -0.008633 -0.017660  0.014245  ... -0.001736 -0.003163 -0.002947\n",
              "2019-06-26 -0.005114  0.006421 -0.029579  ...  0.015648 -0.001722  0.008866\n",
              "2019-06-27  0.014587  0.022010  0.011872  ...  0.007989  0.003996  0.013970\n",
              "2019-06-28  0.020266  0.014357  0.016017  ...  0.002264  0.000995  0.021778\n",
              "2019-07-01  0.017045  0.008000  0.015895  ...  0.023440 -0.010662  0.007612\n",
              "2019-07-02 -0.002243 -0.020757  0.020436  ... -0.016556  0.012878 -0.031945\n",
              "2019-07-03  0.015739  0.016521  0.005257  ...  0.023569  0.000721  0.011594\n",
              "2019-07-05 -0.013672 -0.007973 -0.000062  ... -0.001096 -0.006668  0.018514\n",
              "2019-07-08 -0.025215  0.010201 -0.015129  ... -0.021405 -0.001724 -0.019260\n",
              "2019-07-09 -0.005282 -0.013158 -0.017005  ...  0.008132  0.003998  0.013460\n",
              "2019-07-10 -0.001089  0.017674  0.005981  ... -0.013074  0.004435 -0.014152\n",
              "2019-07-11 -0.022216  0.002742 -0.000895  ... -0.015784  0.004686  0.012367\n",
              "2019-07-12 -0.001255  0.022789  0.014652  ...  0.012887 -0.004036  0.011780\n",
              "2019-07-15 -0.015352 -0.005051  0.002144  ... -0.010178  0.007924 -0.021777\n",
              "2019-07-16 -0.008505  0.018214  0.017871  ...  0.008569 -0.003484  0.002645\n",
              "2019-07-17 -0.005147 -0.028152 -0.025284  ... -0.012744  0.002062 -0.013410\n",
              "2019-07-18  0.007760  0.014484  0.001459  ...  0.009753  0.011542  0.014706\n",
              "2019-07-19 -0.020391 -0.019631 -0.006143  ... -0.025852 -0.004688  0.012297\n",
              "2019-07-22  0.005677 -0.005461  0.012553  ... -0.007582  0.006665 -0.018872\n",
              "2019-07-23  0.011579  0.025320 -0.007930  ...  0.020276 -0.003178 -0.053062\n",
              "2019-07-24 -0.004436  0.025588  0.005455  ...  0.010657 -0.002303  0.015877\n",
              "2019-07-25  0.003880 -0.084421 -0.053438  ... -0.015674  0.002042  0.017008\n",
              "2019-07-26 -0.005011 -0.013625  0.017263  ... -0.003185  0.010010  0.020565\n",
              "2019-07-29  0.012518 -0.016062  0.002752  ... -0.014232  0.000702 -0.011293\n",
              "2019-07-30 -0.003126 -0.000979 -0.008102  ... -0.034178 -0.007537  0.018589\n",
              "2019-07-31 -0.010549 -0.006536 -0.007642  ... -0.020744 -0.006358 -0.009015\n",
              "2019-08-01 -0.002881 -0.021711 -0.004580  ... -0.014330  0.039282 -0.047260\n",
              "2019-08-02 -0.016327 -0.013114 -0.027809  ... -0.033502  0.003506 -0.009082\n",
              "2019-08-05 -0.032609 -0.031346 -0.017972  ... -0.040549 -0.019429 -0.032197\n",
              "2019-08-06  0.027331 -0.002462  0.017323  ... -0.001704  0.008517  0.020398\n",
              "\n",
              "[2515 rows x 450 columns]"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 96
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "scrolled": false,
        "id": "AIWsULBv8TPH",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "952428bc-ce98-411b-d027-8fccfd28dafb"
      },
      "source": [
        "# y data\n",
        "h = yf.download('IPL.TO',start='2009-08-07',end='2019-08-07')\n",
        "h = h[['Adj Close']]\n",
        "rety = h.pct_change().dropna()"
      ],
      "execution_count": 196,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "\r[*********************100%***********************]  1 of 1 downloaded\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "60yU4K6s8TPQ",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "81382a99-f2bf-4314-b7d0-286b5bdbd86d"
      },
      "source": [
        "target = pd.DataFrame({'y':np.where(rety['Adj Close'] >= 0, 1, -1)}, index = rety.index)\n",
        "target.shape"
      ],
      "execution_count": 201,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "(2507, 1)"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 201
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "PRQGeMUZ7UhS",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "forindex = pd.concat([target,ret],axis=1).dropna()\n",
        "\n",
        "y = forindex['y']\n",
        "x = forindex.drop(columns='y')"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "3nb0IKV780EP",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "ee79bc54-d35a-4803-c9c4-7ca4518ffb14"
      },
      "source": [
        "len(y), len(x)"
      ],
      "execution_count": 203,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "(2463, 2463)"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 203
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "2Slk4R3E8TPT",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.model_selection import train_test_split\n",
        "X_train, X_test, y_train, y_test = train_test_split(x, y, random_state=33, shuffle=False, test_size=0.2)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "1FkbP4u5GQwo",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.metrics import accuracy_score\n",
        "from sklearn.metrics import confusion_matrix\n",
        "from sklearn.metrics import classification_report\n"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "yeRzrnMHGdD1",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.model_selection import GridSearchCV"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "P8ADq-cdGgHU",
        "colab_type": "text"
      },
      "source": [
        "## SVM"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "26L4Z0z3GfCO",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.svm import SVC"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "XioxHptjGzC0",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 71
        },
        "outputId": "73b6c04a-18fa-477f-8921-61ebec3bf177"
      },
      "source": [
        "svc = SVC(kernel='rbf', class_weight='balanced')\n",
        "svc = svc.fit(X_train,y_train)"
      ],
      "execution_count": 211,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "/usr/local/lib/python3.6/dist-packages/sklearn/svm/base.py:193: FutureWarning: The default value of gamma will change from 'auto' to 'scale' in version 0.22 to account better for unscaled features. Set gamma explicitly to 'auto' or 'scale' to avoid this warning.\n",
            "  \"avoid this warning.\", FutureWarning)\n"
          ],
          "name": "stderr"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "KV33LM5kGzaS",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "yfit_svc = svc.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "u_SP1LskJJOy",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "73040b7e-248a-4dbf-e456-9a305669ad5c"
      },
      "source": [
        "svc_score = accuracy_score(y_test, yfit_svc)\n",
        "svc_score"
      ],
      "execution_count": 213,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.5618661257606491"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 213
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "BuElZe4bJbzA",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "6282eeaf-4d09-4c92-d526-f59141c6c503"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_svc)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('predicted label')\n",
        "plt.ylabel('true label');"
      ],
      "execution_count": 214,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHT9JREFUeJzt3XmclWX9//HXe1YGZBFxYdE0RXMJ\nCQ019ZsLKmK5Ze6hQk4Kpaa5kFsuuOTW11wxUcy91DI1Ff1q5BYaEoLgD9JUEEUl9m2Wz++Pc6NH\nYGbODHPmzD28nz3ux5xz3de5ruvU9JmLz33d162IwMzM0qOo0AMwM7PGceA2M0sZB24zs5Rx4DYz\nSxkHbjOzlHHgNjNLGQduM7OUceA2M0sZB24zs5QpKfQA6lL12bu+pdNWU9Fjz0IPwVqh6hWztLZt\nNCbmlHb7+lr3tzY84zYzS5lWO+M2M2tRtTWFHkHOHLjNzABqqgs9gpw5cJuZARG1hR5Czhy4zcwA\nah24zczSxTNuM7OU8cVJM7OU8YzbzCxdwqtKzMxSxhcnzcxSxqkSM7OU8cVJM7OU8YzbzCxlfHHS\nzCxlfHHSzCxdIpzjNjNLF+e4zcxSxqkSM7OU8YzbzCxlaqoKPYKcOXCbmYFTJWZmqeNUiZl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MA7eZWcr8fzzn9qmv1yS9\nAAAAAElFTkSuQmCC\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "3YuUkfcKJeVU",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "7a0d2b4a-867a-4416-c5ea-5fa72f93c2d2"
      },
      "source": [
        "print(classification_report(y_test, yfit_svc))"
      ],
      "execution_count": 215,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.54      0.62      0.58       237\n",
            "         1.0       0.59      0.50      0.54       256\n",
            "\n",
            "    accuracy                           0.56       493\n",
            "   macro avg       0.56      0.56      0.56       493\n",
            "weighted avg       0.57      0.56      0.56       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "hRxILTyK8TPX",
        "colab_type": "text"
      },
      "source": [
        "## PCA-SVM Pipeline"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "_ORjpMyk8TPa",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.decomposition import PCA "
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "XSi4HCA48TPg",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "pca = PCA().fit(ret)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "Z1ojzC0V8TPl",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 300
        },
        "outputId": "79977a1f-652e-4954-98ae-5580fae5657d"
      },
      "source": [
        "plt.plot(np.cumsum(pca.explained_variance_ratio_))\n",
        "plt.xlabel('number of components')\n",
        "plt.ylabel('cumulative explained variance')\n",
        "plt.axhline(0.90, c='r', ls='--' )\n",
        "plt.axvline(200, c='r', ls='--' )"
      ],
      "execution_count": 218,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "<matplotlib.lines.Line2D at 0x7f1f630656a0>"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 218
        },
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEKCAYAAAD9xUlFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzt3Xl8FfXV+PHPIZCQhJBAEraETdlR\nBIyAiD5URcEHl6p11+KjYutWrO3v0T5qW221i1bauqLFXXGrihY3BFREZd8RCJskAlkgZN/P74+Z\nhEsIyYC5mZvc83695jXrnXvuEO65M99NVBVjjDEGoI3fARhjjAkdlhSMMcbUsqRgjDGmliUFY4wx\ntSwpGGOMqWVJwRhjTC1LCsYYY2pZUjDGGFPLkoIxxphabf0O4EglJSVpnz59/A7DtDYbNzrzgQP9\njcOYIFm2bFmOqiY3dlyLSwp9+vRh6dKlfodhWpvx4535ggV+RmFM0IjIDi/H2eMjY4wxtVrcnYIx\nQXH33X5HYExIsKRgDMCZZ/odgTEhwR4fGQOwcqUzGRPm7E7BGIBp05y5FTSbMBe0OwURmSkiWSKy\n9jD7RUT+ISLpIrJaREYGKxZjjDHeBPPx0XPAxAb2TwL6u9NU4IkgxmKMMcaDoD0+UtXPRaRPA4ec\nD7ygznigX4tIgoh0V9VdwYrJGGNCSWVVNftLKigoraS4vIri8oPnReVVlJRXUlJeTVV1NWcM7soJ\nPROCGpOfZQopwM6A9Qx32yFJQUSm4txN0KtXr2YJzhhjvKqqVvYVl5NbWE5uYRn7iivIKylnf0mF\nMxU78zx3XjMVllUe0ft06di+VScFz1R1BjADIC0tTX0Ox7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u9b0UZ4wB04pZL6nG\nhBgRGQ/8SlUn+x2LCT92p2CMMaaW3SkYY4ypZXcKxhhjallSMMYYU8uSgjHGmFqWFIwxxtSypGCM\nMaaWJQVjjDG1/j+hZI2aGTieigAAAABJRU5ErkJggg==\n",
            "text/plain": [
              "<Figure size 432x288 with 1 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "uXgFOdzf8TPp",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "\n",
        "from sklearn.pipeline import make_pipeline"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "J95Hk3tc8TPv",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "pca = PCA(n_components=200, whiten=True, random_state=33)\n",
        "\n",
        "model = make_pipeline(pca, svc)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "Le-WKTJo8TP4",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 71
        },
        "outputId": "cc07fa17-dd8c-48be-8a42-45a2de8a8486"
      },
      "source": [
        "pipe = model.fit(X_train,y_train)\n",
        "yfit_ps = pipe.predict(X_test)"
      ],
      "execution_count": 221,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "/usr/local/lib/python3.6/dist-packages/sklearn/svm/base.py:193: FutureWarning: The default value of gamma will change from 'auto' to 'scale' in version 0.22 to account better for unscaled features. Set gamma explicitly to 'auto' or 'scale' to avoid this warning.\n",
            "  \"avoid this warning.\", FutureWarning)\n"
          ],
          "name": "stderr"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "57H_6-S98TQA",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "a87f604d-61a7-42fd-ff99-0b90debc3e13"
      },
      "source": [
        "pca_svm_score = accuracy_score(y_test, yfit_ps)\n",
        "pca_svm_score"
      ],
      "execution_count": 222,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.5740365111561866"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 222
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "zHaTSVR38TQE",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "f84829c8-63b9-44f5-c226-efaba31b003d"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_ps)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 223,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHctJREFUeJzt3XecFeXZ//HPlyadpSggWNAfatSo\njxJFYxIsMZYY8GeX2BULGo0llthiJUaTiEYNKiqJsRvF3kIsiCJYUDRGHo1KUUSKwKJxd6/njzOL\nS9nd2WXPOTuH75vXvPbMPTP3XOclXtx7zT0zigjMzCw7WhQ7ADMzaxgnbjOzjHHiNjPLGCduM7OM\nceI2M8sYJ24zs4xx4jYzyxgnbjOzjHHiNjNrYpJGS5ot6e0abVtJelnSG5ImSdo2aZekkZKmSZoi\naet6+2+ud04es/5+zTMwK6rzyhYUOwRrhtZ/42mtah/fzPkgdc5p3WODOs8n6YfAImBMRGyetD0F\n/CEiHpe0J/CriBiUfD4Z2BPYDrgmIrarq3+PuM3MmlhEPA/MXb4Z6Jx87gLMTD4PJpfgIyJeBsok\n9a6r/1ZNGayZWWZVVabeVdIwYFiNplERMaqew04FnpR0FblB8w5Jex/gkx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x3bPwPWktRd0hrA\nTwEi4kvgQ0n7Ayhny3rO1YVvH3N7+HLbBktqK6k7MIjckxafBI5KRvdI6iNprfRfzax58IjbmlRE\nfCFpfHIB8nHg0eW2fyPpYmAiuaT7rxqbhwI3SDoPaE3uVW1v1nG6i8iVVuYB/wD61dg2BRgH9AAu\niYiZwExJ3wEmJOWYRcDPgdmN/LpmReGnA5qZZYxLJWZmGePEbWaWMU7cZmYZ48RtZpYxTtxmZhnj\nxG1mljFO3GZmGePEbWaWMf8HE33roRW+lBwAAAAASUVORK5CYII=\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "4dLd-ITq8TQQ",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "e69ff558-e923-4158-fd87-ddd447d155cd"
      },
      "source": [
        "print(classification_report(y_test, yfit_ps))"
      ],
      "execution_count": 224,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.58      0.43      0.49       237\n",
            "         1.0       0.57      0.71      0.63       256\n",
            "\n",
            "    accuracy                           0.57       493\n",
            "   macro avg       0.57      0.57      0.56       493\n",
            "weighted avg       0.57      0.57      0.57       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "3bJIFl-Q8TQT",
        "colab_type": "text"
      },
      "source": [
        "## Random Forest"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "BVuyq0d_8TQU",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.ensemble import RandomForestClassifier"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "YktLD7Zt8TQe",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 190
        },
        "outputId": "4ad405cd-4d65-4513-ce86-e144a6715e02"
      },
      "source": [
        "clf_rf = RandomForestClassifier()\n",
        "clf_rf.fit(X_train, y_train )"
      ],
      "execution_count": 226,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "/usr/local/lib/python3.6/dist-packages/sklearn/ensemble/forest.py:245: FutureWarning: The default value of n_estimators will change from 10 in version 0.20 to 100 in 0.22.\n",
            "  \"10 in version 0.20 to 100 in 0.22.\", FutureWarning)\n"
          ],
          "name": "stderr"
        },
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "RandomForestClassifier(bootstrap=True, class_weight=None, criterion='gini',\n",
              "                       max_depth=None, max_features='auto', max_leaf_nodes=None,\n",
              "                       min_impurity_decrease=0.0, min_impurity_split=None,\n",
              "                       min_samples_leaf=1, min_samples_split=2,\n",
              "                       min_weight_fraction_leaf=0.0, n_estimators=10,\n",
              "                       n_jobs=None, oob_score=False, random_state=None,\n",
              "                       verbose=0, warm_start=False)"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 226
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "Dxunjt1R8TQk",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 71
        },
        "outputId": "4250187f-488b-4641-9f8d-e2ec48f52e0d"
      },
      "source": [
        "param_grid2 = {'max_depth':[4,5,6,7]}\n",
        "grid2 = GridSearchCV(clf_rf, param_grid2)\n",
        "rf_best = grid2.fit(X_train,y_train)\n",
        "yfit_rf_best = rf_best.predict(X_test)"
      ],
      "execution_count": 227,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "/usr/local/lib/python3.6/dist-packages/sklearn/model_selection/_split.py:1978: FutureWarning: The default value of cv will change from 3 to 5 in version 0.22. Specify it explicitly to silence this warning.\n",
            "  warnings.warn(CV_WARNING, FutureWarning)\n"
          ],
          "name": "stderr"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "OIYrGHA88TQr",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "4beae466-ef55-4889-fd9b-522034885d1b"
      },
      "source": [
        "#Gridsearch\n",
        "rf_score = accuracy_score(y_test, yfit_rf_best)\n",
        "rf_score"
      ],
      "execution_count": 228,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.6085192697768763"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 228
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "IF8SP4J_8TQy",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "4ca280ad-96e7-4763-e60b-4e510e5ea912"
      },
      "source": [
        "from sklearn.metrics import confusion_matrix\n",
        "mat = confusion_matrix(y_test, yfit_rf_best)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 229,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHG1JREFUeJzt3XmcVmX5x/HPd9hBQBAEQkBQ0NSf\nG7lVKm65h7uoFSoGWirlbpqSaJqplbuYJpWKpj/KXFAjc8VUxHD/uWWyr7IMaMzM9fvjecBHYGbO\nMM92hu/b13nNc+7zPPe5ntdruOb2Ove5jyICMzNLj4pSB2BmZg3jxG1mljJO3GZmKePEbWaWMk7c\nZmYp48RtZpYyTtxmZinjxG1mljJO3GZmKdO81AHU5uJNj/ctnbaGE9vOL3UIVoY2f+txNbaPFfM+\nTJxzWnTp1+jzNYZH3GZmKVO2I24zs6KqqS51BIk5cZuZAV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l4cRdxiQ1A24CDgS2Ao6TtFVpo7Iy\ncBdwQKmDsNJx4i5vOwPvR8SHEfFfYBwwuMQxWYlFxDPAglLHYaXjxF3eegKf5OxPy7aZ2XrMidvM\nLGWcuMvbdKBXzv4m2TYzW485cZe3l4H+kvpKagkMAR4qcUxmVmJO3GUsIqqA04HHgbeB+yPizdJG\nZaUm6V5gErCFpGmShpU6Jisu3zlpZpYyHnGbmaWME7eZWco4cZuZpYwTt5lZyjhxm5mljBO35ZWk\nDSX9oID9nyjpxnreM0rSOQ3sd2njIjMrHiduy7cNgbUmbknNixyLWZPkxG35dhWwmaTXJP1S0iBJ\nz0p6CHhL0qa560hLOkfSqOzrzSRNkDQ5+5kt6zqRpEMl/VPSFEl/k9Qt5/B2kiZJek/S93M+c66k\nlyVNlfSz/H51s+LwCMjy7QJgm4jYHkDSIGDHbNtHkjat47NjgFMj4j1JuwA3A3vX8f7ngF0jIiSd\nApwHnJ09ti2wK9AOmCLpEWAboD+Z5XIFPCRpj+wyqWap4cRtxfBSRHxU1xskbQB8HfiTpJXNrerp\ndxPgPkk9gJZA7jn+EhHLgeWSniKTrL8JfAuYkn3PBmQSuRO3pYoTtxVDZc7rKr5comud/VkBfLpy\npJ7QDcB1EfFQdmQ/KufY6ms5BJlR9pURcVsDzmFWdlzjtnxbArSv4/hsYGNJG0lqBRwCEBGLgY8k\nHQ2gjO3qOVdHvljmduhqxwZLai1pI2AQmZUWHwdOzo7ukdRT0sbJv5pZefCI2/IqIuZLej57AfIx\n4JHVjq+QdBnwEpmk+07O4ROAWyRdDLQg86i2f9VxulFkSisLgb8DfXOOTQWeAroAoyNiBjBD0leB\nSdlyzFLgO8Ccdfy6ZiXh1QHNzFLGpRIzs5Rx4jYzSxknbjOzlHHiNjNLGSduM7OUceI2M0sZJ24z\ns5Rx4jYzS5n/BxXMrC2lQtKGAAAAAElFTkSuQmCC\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "L-S6tS4g8TQ3",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "87df27ec-2952-4b5e-b7c9-1c3863b7612d"
      },
      "source": [
        "print(classification_report(y_test, yfit_rf_best))"
      ],
      "execution_count": 230,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.64      0.43      0.51       237\n",
            "         1.0       0.59      0.77      0.67       256\n",
            "\n",
            "    accuracy                           0.61       493\n",
            "   macro avg       0.62      0.60      0.59       493\n",
            "weighted avg       0.62      0.61      0.60       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "wCT7oz0D8TQ8",
        "colab_type": "text"
      },
      "source": [
        "## Gaussian Naive Bayesian"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "HCroylzu8TQ9",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.naive_bayes import GaussianNB\n",
        "modelgnb = GaussianNB()\n",
        "modelgnb.fit(X_train, y_train);\n",
        "yfit_gnb = modelgnb.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "nPJUJelm8TRC",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "ac7b1925-1836-4521-9796-dd7238d10a5b"
      },
      "source": [
        "\n",
        "gnb_score = accuracy_score(y_test, yfit_gnb)\n",
        "gnb_score"
      ],
      "execution_count": 232,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.5983772819472617"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 232
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "Gnuukrq68TRG",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "f8e8d881-5a8f-4052-8d3b-42531e07b970"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_gnb)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 233,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHiJJREFUeJzt3XeYVOXZx/HvjyYISC8qFlRIRING\nUTDRBDU2wivGgoBJbBELGqxRE2ONxoiisUtesSQ2XnuiWGMhiUoRotiJWCiC0kHa7t7vHzNLVmB3\nzy4zO3uG38frXDvznDPPuee61ntvnvOc5ygiMDOz9GhQ6ADMzKxmnLjNzFLGidvMLGWcuM3MUsaJ\n28wsZZy4zcxSxonbzCxlnLjNzFLGidvMLGUaFTqAyrza+Sjf0mnreLxpw0KHYPXQyE8e1Ib2sfqr\njxPnnMbtt9vg820IV9xmZilTbytuM7M6VVZa6AgSc+I2MwMoLSl0BIk5cZuZARFlhQ4hMSduMzOA\nMiduM7N0SVHF7VklZmaQuTiZdKuGpNGS5kqaulb7GZLel/SOpGuybdtKWi5pSna7vbr+XXGbmUGu\nK+67gZuBe8sbJO0LDAB2iYiVkjpWOP4/EbFr0s6duM3MgMjhrJKIeFXStms1nwpcHRErs8fMrW3/\nHioxM4PMxcmkW+10B/aR9IakVyTtUWFfV0mTs+37VNeRK24zM6jRUImkocDQCk2jImJUNR9rBLQF\n+gB7AGMkbQfMBraOiHmSdgcel7RTRCyuqiMzM6vBnZPZJF1dol7bDODRiAhgvKQyoH1EfAmUD59M\nkvQfMtX5xMo68lCJmRlkKu6kW+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vKk53KZmhlQXA34GuFfa9BbwEtAeuiIhZwCxJOwKvZYdjlgI/BebW8uuaFYRXBzQz\nSxkPlZiZpYwTt5lZyjhxm5mljBO3mVnKOHGbmaWME7eZWco4cZuZpYwTt5lZyvw/1jsOwLXZsDQA\nAAAASUVORK5CYII=\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "BedCQYfZ8TRN",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "8f7e0bcc-2f33-4ab3-f4ee-2b1d18e880ed"
      },
      "source": [
        "print(classification_report(y_test, yfit_gnb))"
      ],
      "execution_count": 234,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.59      0.53      0.56       237\n",
            "         1.0       0.60      0.66      0.63       256\n",
            "\n",
            "    accuracy                           0.60       493\n",
            "   macro avg       0.60      0.60      0.60       493\n",
            "weighted avg       0.60      0.60      0.60       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "LBt3rA5X8TRS",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        ""
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "slOsMmor8TRW",
        "colab_type": "text"
      },
      "source": [
        "## Boosting"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "cTRF2X8P8TRY",
        "colab_type": "text"
      },
      "source": [
        "## Ada-boosting"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "ZWPnKeYZ8TRZ",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.tree import DecisionTreeClassifier\n",
        "from sklearn.ensemble import AdaBoostClassifier\n",
        "\n",
        "abc = AdaBoostClassifier(base_estimator = DecisionTreeClassifier(),n_estimators=50,  learning_rate=0.1)\n",
        "abc.fit(X_train, y_train)\n",
        "yfit_abc = abc.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "XHVnM3QF8TRg",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "59041aa9-68b2-44d6-dfe0-fce05d302668"
      },
      "source": [
        "\n",
        "abc_score = accuracy_score(y_test, yfit_abc)\n",
        "abc_score"
      ],
      "execution_count": 236,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.5618661257606491"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 236
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "N-JK-W8M8TRm",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 300
        },
        "outputId": "4584fb28-ce0c-46e4-dd6c-41eb138aa4fd"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_abc)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label')"
      ],
      "execution_count": 237,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "Text(33.0, 0.5, 'predicted label')"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 237
        },
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHhdJREFUeJzt3XecFdXdx/HPFxCx0LFRoqjYsD1q\nVGIJahRBDbYoltiIWLBr8kAwNiwoRaNGEaOgsWDJYyxBYokGUgxiI2IJGEQpipWit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0mvJz2xX2YUk\nHSHpn5LekPSCpE3ydu8i6R+Spkk6M+9nfi7pVUlTJF1ds1/drHa4B2Q1bQCwY0TsCiCpO7BbUjdD\n0haV/Owo4OyImCZpL+AO4MBKjv8rsHdEhKSfAb8ALk327QzsDWwAvCHpj8COQBdy0+UKeErS/sk0\nqWaZ4cBttWFSRMyo7ABJGwI/AB6TtKJ63SrO2xF4RNJmQFMg/xpPRsRiYLGkl8gF632BQ4A3kmM2\nJBfIHbgtUxy4rTZ8k/e5hO+m6JolfzYCvl7RU0/pNmBERDyV9Oyvytu36lwOQa6XfUNE3FWNa5jV\nOc5xW01bCDSvZP+nwMaS2kpaFzgcICIWADMk/QRAObtUca2W/Hea21NX2ddbUjNJbYHu5GZa/BNw\nRtK7R1IHSRun/2pmdYN73FajIuILSX9LHkA+C/xxlf3LJV0DTCIXdN/L230ScKeky4F1yC3V9lYl\nl7uKXGrlK+DPQOe8fVOAl4B2wOCImAPMkbQ98I8kHbMIOBmYt4Zf16woPDugmVnGOFViZpYxDtxm\nZhnjwG1mljEO3GZmGePAbWaWMQ7cZmYZ48BtZpYxDtxmZhnz//GQ1gZDZhipAAAAAElFTkSuQmCC\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "Auw-bUKc8TRp",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "d2f83ccf-1f76-4f47-bcfe-9ea2f679d88f"
      },
      "source": [
        "print(classification_report(y_test, yfit_abc))"
      ],
      "execution_count": 238,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.55      0.50      0.52       237\n",
            "         1.0       0.57      0.62      0.59       256\n",
            "\n",
            "    accuracy                           0.56       493\n",
            "   macro avg       0.56      0.56      0.56       493\n",
            "weighted avg       0.56      0.56      0.56       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "fcy-JX7P8TRz",
        "colab_type": "text"
      },
      "source": [
        "## Gradient Boosting"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "fbzS8UIh8TR1",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "0c825168-fc54-4cc2-aaa0-b8e2305e55a5"
      },
      "source": [
        "from sklearn.ensemble import GradientBoostingClassifier\n",
        "\n",
        "gbc = GradientBoostingClassifier( n_estimators=120, max_depth=2)\n",
        "gbc.fit(X_train, y_train)\n",
        "yfit_gbc = gbc.predict(X_test)\n",
        "\n",
        "accuracy_score(y_test, yfit_gbc)"
      ],
      "execution_count": 239,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.6206896551724138"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 239
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "jCSrd5YP8TR7",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "2e20646e-1c73-4086-fd6b-10a2b02a1e1f"
      },
      "source": [
        "from sklearn.metrics import mean_squared_error\n",
        "err = [mean_squared_error(y_test, yhat) for yhat in gbc.staged_predict(X_test)]\n",
        "idx = np.argmin(err)\n",
        "idx"
      ],
      "execution_count": 240,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "8"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 240
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "scrolled": true,
        "id": "U_XzNdq68TSI",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "gbc_best = GradientBoostingClassifier( n_estimators=idx, max_depth=2)\n",
        "gbc_best.fit(X_train, y_train)\n",
        "yfit_gbc_best = gbc_best.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "Y-M9id4F8TSN",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "2aa48791-173a-4cf4-89ca-16451b9c12f5"
      },
      "source": [
        "#best hyperparameter\n",
        "gbc_score = accuracy_score(y_test, yfit_gbc_best)\n",
        "gbc_score\n"
      ],
      "execution_count": 243,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.6247464503042597"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 243
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "qMDHgdtO8TST",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "172ec5bb-e163-4c2f-9801-93917fd845a1"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_gbc_best)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 244,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHE5JREFUeJzt3XmcVXX9x/HXe2YY9kVB1EAFETFc\nS01+aT9xyTI1WkwxKywUS0zUSEXNDUlzz0yUcqtcwrTcklQU0zJRfhgFiJKkssii7CAwM5/fH/dA\nIzHDmWHuvXMu76eP85h7zzn3nM99PMbPfPic7/keRQRmZpYdZcUOwMzMGsaJ28wsY5y4zcwyxonb\nzCxjnLjNzDLGidvMLGOcuM3MMsaJ28wsY5y4zcwypqLYAdTlzB4n+pZO+y+X7/1esUOwZqjzY89r\nS4+xbtFbq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ixWHE7czZikcuDnwNFAX+AkSX2LG5U1A3cDny92EFY8TtzN26eAmRHxVkSsBR4ABhQ5JiuyiPgz\n8EGx47DiceJu3roB79Z6v0WPOzKz0uDEbWaWMU7czdscYKda77focUdmVhqcuJu3V4DeknpKqiT3\nGKRHixyTmRWZE3czljxU9EzgT8B0YGxETC1uVFZsku4HXgL6SJotaXCxY7LC8p2TZmYZ44rbzCxj\nnLjNzDLGidvMLGOcuM3MMsaJ28wsY5y4rUlJ6iTpjDwe/xRJt2xmn8skDW/gcVdsWWRmhePEbU2t\nE7DJxC2posCxmJUkJ25ralcDvSS9JulaSf0lvSDpUWCapB6155GWNFzSZcnrXpLGSZqUfGaP+k4k\n6ThJL0uaLOkZSdvX2ryvpJckvSnptFqf+aGkVyRNkXR50351s8JwBWRN7QJgr4jYD0BSf+CTybpZ\nknrU89kxwHcj4k1JBwG3AofXs/+LQL+ICEmnAucBP0i27QP0A9oCkyU9AewF9CY3Xa6ARyX9bzJN\nqllmOHFbIUyMiFn17SCpHfBp4EFJ61e33MxxuwO/lbQjUAnUPscjEbEaWC3pOXLJ+hDgKGBysk87\nconcidsyxYnbCmFlrddVfLRF1yr5WQYsWV+pp/Qz4IaIeDSp7C+rtW3juRyCXJV9VUTc3oBzmDU7\n7nFbU1sOtK9n+3ygq6TOkloCxwJExDJglqSvAShn382cqyP/meZ20EbbBkhqJakz0J/cTIt/Ar6T\nVPdI6iapa/qvZtY8uOK2JhUR70v6S3IB8kngiY22r5N0BTCRXNJ9vdbmk4HRki4GWpB7VNvf6znd\nZeRaK4uBZ4GetbZNAZ4DugAjI2IuMFfSx4GXknbMCuAbwIJGfl2zovDsgGZmGeNWiZlZxjhxm5ll\njBO3mVnGOHGbmWWME7eZWcY4cZuZZYwTt5lZxjhxm5llzP8DcflbAr6fGTgAAAAASUVORK5CYII=\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "scrolled": true,
        "id": "mqttjWuc8TSX",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "d60abac7-7631-43e2-fa71-d96ba82b32f2"
      },
      "source": [
        "print(classification_report(y_test, yfit_gbc_best))"
      ],
      "execution_count": 245,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.72      0.36      0.48       237\n",
            "         1.0       0.59      0.87      0.71       256\n",
            "\n",
            "    accuracy                           0.62       493\n",
            "   macro avg       0.66      0.61      0.59       493\n",
            "weighted avg       0.66      0.62      0.60       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "PgCJyNXL8TSd",
        "colab_type": "text"
      },
      "source": [
        "## Single Decision Tree Model"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "scrolled": true,
        "id": "7Kboxzvp8TSe",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 272
        },
        "outputId": "54e56f3c-f2d6-4cb1-abc4-6c1e89edb802"
      },
      "source": [
        "params = {'max_depth': [2,3,4,5,6]}\n",
        "dtc_grid = GridSearchCV(DecisionTreeClassifier(), params, cv=5)\n",
        "dtc_grid"
      ],
      "execution_count": 246,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "GridSearchCV(cv=5, error_score='raise-deprecating',\n",
              "             estimator=DecisionTreeClassifier(class_weight=None,\n",
              "                                              criterion='gini', max_depth=None,\n",
              "                                              max_features=None,\n",
              "                                              max_leaf_nodes=None,\n",
              "                                              min_impurity_decrease=0.0,\n",
              "                                              min_impurity_split=None,\n",
              "                                              min_samples_leaf=1,\n",
              "                                              min_samples_split=2,\n",
              "                                              min_weight_fraction_leaf=0.0,\n",
              "                                              presort=False, random_state=None,\n",
              "                                              splitter='best'),\n",
              "             iid='warn', n_jobs=None, param_grid={'max_depth': [2, 3, 4, 5, 6]},\n",
              "             pre_dispatch='2*n_jobs', refit=True, return_train_score=False,\n",
              "             scoring=None, verbose=0)"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 246
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "Lb4QfVL18TSm",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 119
        },
        "outputId": "4a26582c-7952-4551-d839-ce0b0f28d6f7"
      },
      "source": [
        "dtc_grid.fit(X_train, y_train)\n",
        "dtc_grid.best_estimator_"
      ],
      "execution_count": 247,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "DecisionTreeClassifier(class_weight=None, criterion='gini', max_depth=3,\n",
              "                       max_features=None, max_leaf_nodes=None,\n",
              "                       min_impurity_decrease=0.0, min_impurity_split=None,\n",
              "                       min_samples_leaf=1, min_samples_split=2,\n",
              "                       min_weight_fraction_leaf=0.0, presort=False,\n",
              "                       random_state=None, splitter='best')"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 247
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "VY5ERr_F8TSu",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "6591c49d-5daa-4276-beef-0417f96ba9d4"
      },
      "source": [
        "\n",
        "yfit_dtc_best = dtc_grid.best_estimator_.predict(X_test)\n",
        "tree_score = accuracy_score(yfit_dtc_best, y_test)\n",
        "tree_score"
      ],
      "execution_count": 248,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.5983772819472617"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 248
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "fnW3fi4p8TS1",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "357f1827-26d6-475f-9a36-46dfb86513c4"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_dtc_best)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 249,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAG45JREFUeJzt3XmcVnX5//HXm112WUXFNdwXUlTM\nSkwtNb+hpbh9i1zAEk0NLVfSr5j+Sk3TolBcMtPQMkkFF8ykXDGVxJU0kkUYkB0EZub6/XEfbECY\nOTPc27l5P32cx5zt/pzrPB7jNR+u+3M+RxGBmZllR7NSB2BmZo3jxG1mljFO3GZmGePEbWaWMU7c\nZmYZ48RtZpYxTtxmZhnjxG1mljFO3GZmGdOi1AFsyGnbHedHOu1Tfrp7ValDsDLU9ZG/amPbWD3v\nvdQ5p2W3HTb6ehvDPW4zs4wp2x63mVlR1daUOoLUnLjNzABqqksdQWpO3GZmQERtqUNIzYnbzAyg\n1onbzCxb3OM2M8sYfzlpZpYx7nGbmWVLeFSJmVnG+MtJM7OMcanEzCxj/OWkmVnGuMdtZpYx/nLS\nzCxj/OWkmVm2RLjGbWaWLa5xm5lljEslZmYZ4x63mVnG1KwudQSpOXGbmYFLJWZmmeNSiZlZxrjH\nbWaWMU7cZmbZEv5y0swsY1zjNjPLGJdKzMwyxj1uM7OMcY/bzCxj3OM2M8uY6uy8SKFZqQMwMysL\nUZt+aYCk2yXNlfR6nX19JT0v6VVJkyXtn+yXpJ9LmiZpiqR9GmrfidvMDHI17rRLw+4Ejlhn30+A\nKyOiLzAi2QY4EuiTLEOBUQ017sRtZgZ57XFHxDPAR+vuBjom652AWcn6QOA3kfM80FlSr/rad43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vqTjAZSzdwPX6sR/p7kdvM6xgZLaSOoKDCA30+JjwGlJ7x5JW0nqkf7WzMqDe9yWVxExX9Lf\nky8gxwOPrHN8taT/A14kl3TfqnP4FGCUpMuAluRe1fZaPZe7glxpZQHwFLB9nWNTgL8A3YCrImIW\nMEvSrsBzSTlmKfC/wNwm3q5ZSXh2QDOzjHGpxMwsY5y4zcwyxonbzCxjnLjNzDLGidvMLGOcuM3M\nMsaJ28wsY5y4zcwy5v8Dt3QtNDFC3CkAAAAASUVORK5CYII=\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "gDZwih4d8TS7",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "5a89a084-707d-4c5c-80d4-2ef63e0b59bf"
      },
      "source": [
        "print(classification_report(y_test, yfit_dtc_best))"
      ],
      "execution_count": 250,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.64      0.38      0.48       237\n",
            "         1.0       0.58      0.80      0.67       256\n",
            "\n",
            "    accuracy                           0.60       493\n",
            "   macro avg       0.61      0.59      0.58       493\n",
            "weighted avg       0.61      0.60      0.58       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "4bqIN-ua8TTB",
        "colab_type": "text"
      },
      "source": [
        "## XGBoost"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "ZE-9DqS78TTD",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from xgboost import XGBClassifier"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "pH_YgrmTDeXM",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "xgb = XGBClassifier(n_estimators=100)\n",
        "xgb = xgb.fit(X_train, y_train)\n",
        "yfit_xgb = xgb.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "KVhiM1F5EDFZ",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "ad60bf90-0841-4d04-e2b5-051ca70a129c"
      },
      "source": [
        "xgb_score = accuracy_score(yfit_xgb, y_test)\n",
        "xgb_score"
      ],
      "execution_count": 253,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.6308316430020284"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 253
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "4tAbapcgEK6I",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "a249e7b2-7ca9-4cf6-e448-c82eca9e82f1"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_xgb)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 254,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHUdJREFUeJzt3XeYFdX9x/H3Z4FVQBAQlaoCAhYU\nothLiN3EBEsSRZNYUCyYnyUWrFGxRUWNGkFULImiJsZoTMSCjRgbWFAUgqIoRZCiFBXY3e/vj3vR\nK7C7s7D33p3l8+KZZ++cmXvmO88zfPfsmTNnFBGYmVl6lBQ7ADMzqxknbjOzlHHiNjNLGSduM7OU\nceI2M0sZJ24zs5Rx4jYzSxknbjOzlHHiNjNLmYbFDq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zarYPgvYSNIGktYBDgKIiAXAR5J+AaCMntUca32+\nm+b26BW29ZW0rqQNgD5kZlp8Ejgu27pHUntJGyU/NbO6wS1uq1URMVfSS9kbkE8A/1ph+zJJlwGv\nkUm6E3M2HwUMlXQh0IjMq9reruJwl5DpWpkPPAt0ytk2HngOaA0MjogZwAxJWwIvZ7tjFgG/Amav\n5umaFYVnBzQzSxl3lZiZpYwTt5lZyjhxm5mljBO3mVnKOHGbmaWME7eZWco4cZuZpYwTt5lZyvw/\n+UO98DYGlNkAAAAASUVORK5CYII=\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "ohN0RCm2ESt5",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "5c370466-ca44-4278-b8da-c6db94e1bbd7"
      },
      "source": [
        "print(classification_report(y_test, yfit_xgb))"
      ],
      "execution_count": 255,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.65      0.51      0.57       237\n",
            "         1.0       0.62      0.75      0.68       256\n",
            "\n",
            "    accuracy                           0.63       493\n",
            "   macro avg       0.63      0.63      0.62       493\n",
            "weighted avg       0.63      0.63      0.63       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "RVl5IutuKk-u",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "xgb2 = XGBClassifier(ax_depth=5, learning_rate=0.01, n_estimators=100, gamma=0, \n",
        "                        min_child_weight=1, subsample=0.8, colsample_bytree=0.8, reg_alpha=0.005)\n",
        "xgb2 = xgb2.fit(X_train, y_train)\n",
        "yfit_xgb_2 = xgb2.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "YVk5nC0AKw_V",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "56f03b4b-57b2-4783-8c44-b58fc640f50d"
      },
      "source": [
        "xgb_score = accuracy_score(y_test,yfit_xgb_2)\n",
        "xgb_score"
      ],
      "execution_count": 257,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.6389452332657201"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 257
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "TRBMeyAyEpLk",
        "colab_type": "text"
      },
      "source": [
        "## KNN (K-Nearest Neighbors)"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "AEe7di9BEony",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.neighbors import KNeighborsClassifier\n",
        "\n",
        "knn = KNeighborsClassifier()\n",
        "knn = knn.fit(X_train, y_train)\n",
        "yfit_knn = knn.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "nPus8EjPE_mo",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "313ca13c-6c4a-49ae-d60b-d86f148a4952"
      },
      "source": [
        "knn_score = accuracy_score(yfit_knn, y_test)\n",
        "knn_score"
      ],
      "execution_count": 259,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.5963488843813387"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 259
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "vNaycgS7FDPB",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "5d2b3658-abd5-4999-ad43-9c8e034b55d6"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_knn)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 260,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHUtJREFUeJzt3XecFdX9//HXmyZSFwEFsVBE7KJg\nyS/qF2s0sfcaTRQ0ahR7jL1FEwuxIya2FNTYNZYosUYTECHEKAYUlCZNqSKwu5/fH/eurrBlFvaW\nubyfPuaxd87MnvncxwM/HD5z5owiAjMzS48mhQ7AzMwaxonbzCxlnLjNzFLGidvMLGWcuM3MUsaJ\n28wsZZy4zcxSxonbzCxlnLjNzFKmWaEDqM0l3Y/1I522kuObzyt0CFaENp/wvFa3j+VzPkmcc5p3\n6rna11sdHnGbmaVM0Y64zczyqrKi0BEk5sRtZgZQUV7oCBJz4jYzAyIqCx1CYk7cZmYAlU7cZmbp\n4hG3mVnK+OakmVnKeMRtZpYu4VklZmYp45uTZmYp41KJmVnK+OakmVnKeMRtZpYyvjlpZpYyvjlp\nZpYuEa5xm5mli2vcZmYp41KJmVnKeMRtZpYyFcsLHUFiTtxmZuBSiZlZ6jRiqUTSfcD+wKyI2Crb\n9gjQJ3tKGTAvIvpK6g58CHyUPfbPiDitrv6duM3MoLFH3A8AdwAPVTVExFFVnyXdDMyvdv7HEdE3\naedO3GZm0KiJOyLeyI6kVyJJwJHAHqvaf5NV/UUzs1ISFcsTb5IGSXq32jaoAZfaFZgZEROqtfWQ\nNEbS65J2ra8Dj7jNzKBBNe6IGAYMW8UrHQMMr7Y/A9goIuZK6gc8JWnLiFhQWwdO3GZmkJdZJZKa\nAYcC/araImIpsDT7ebSkj4FNgXdr68eJ28wM8vUAzl7A+IiYWtUgqTPwRURUSOoJ9AY+qasT17jN\nzCAz4k661UPScOAdo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SkmVnKeMRtZpYyTtxmZinjxG1mljJO3GZmKePEbWaWMk7c1qgklUk6PYf9\nnyTpjnrOuVLS+Q3sd9HqRWaWP07c1tjKgBoTt6RmeY7FrCQ5cVtjuwHoJWmspBslDZD0pqRngA8k\nda++jrSk8yVdmf3cS9KLkkZnf2ezui4k6QBJ/5I0RtIrktardnhbSe9ImiBpYLXfuUDSKEnjJF3V\nuF/dLD88ArLG9gtgq4joCyBpALB9tm2SpO51/O4w4LSImCBpJ+AuYI86zn8L2DkiQtIpwIXAedlj\n2wA7A62BMZL+CmwF9CazXK6AZyTtll0m1Sw1nLgtH0ZGxKS6TpDUBvh/wF8kVTWvVU+/GwCPSOoK\ntACqX+PpiFgCLJH0KplkvQuwDzAme04bMoncidtSxYnb8mFxtc/lfLdE1zL7swkwr2qkntDtwC0R\n8Ux2ZH9ltWMrruUQZEbZ10fEPQ24hlnRcY3bGttCoG0dx2cC60rqKGktYH+AiFgATJJ0BIAytq3n\nWu35dpnbE1c4dpCklpI6AgPIrLT4EvDT7OgeSd0krZv8q5kVB4+4rVFFxFxJ/8jegHwB+OsKx5dL\nuhoYSSbpjq92+DjgbkmXAs3JvKrt33Vc7koypZUvgb8DPaodGwe8CnQCromI6cB0SZsD72TLMYuA\n44FZq/h1zQrCqwOamaWMSyVmZinjxG1mljJO3GZmKePEbWaWMk7cZmYp48RtZpYyTtxmZinjxG1m\nljL/H57smJ/ONH86AAAAAElFTkSuQmCC\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "qOxbK6q-FB7f",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "3437376d-7198-4d74-8b29-52a9612904e2"
      },
      "source": [
        "print(classification_report(y_test, yfit_knn))"
      ],
      "execution_count": 261,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.61      0.44      0.51       237\n",
            "         1.0       0.59      0.74      0.66       256\n",
            "\n",
            "    accuracy                           0.60       493\n",
            "   macro avg       0.60      0.59      0.58       493\n",
            "weighted avg       0.60      0.60      0.59       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "tu7FT_4uFJXK",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        ""
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "oQ_idGXdLgUM",
        "colab_type": "text"
      },
      "source": [
        "## MLP (Multilayer Perceptron)"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "hg-zacmNLhUH",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "from sklearn.neural_network import MLPClassifier\n",
        "mlp = MLPClassifier(solver='lbfgs')\n",
        "mlp = mlp.fit(X_train, y_train)\n",
        "yfit_mlp = mlp.predict(X_test)"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "4VfdhA4qL7P_",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "7ab12f55-4010-41d8-fe6b-0f8711f4f104"
      },
      "source": [
        "mlp_score = accuracy_score(yfit_mlp, y_test)\n",
        "mlp_score"
      ],
      "execution_count": 263,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "0.5537525354969574"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 263
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "lOtfap7jMATp",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 283
        },
        "outputId": "6b52e3f7-a42f-4e43-9fad-4f8c6f0b4fa4"
      },
      "source": [
        "mat = confusion_matrix(y_test, yfit_mlp)\n",
        "sns.heatmap(mat , annot=True)\n",
        "plt.xlabel('true label')\n",
        "plt.ylabel('predicted label');"
      ],
      "execution_count": 264,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEKCAYAAAAyx7/DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAHqRJREFUeJzt3XecFdX5x/HPd2EXBQQEVAREsMea\nGGIvxBYVI4IloiZYsYvGWDHGbuwGOzbUGCwx+cWGQmyADVEUsRuMCqj0Ihpgd5/fH/eiK7C7s7K3\nzOX75jWv3Xtm7pnn6vLs4ZkzZxQRmJlZepQVOgAzM2sYJ24zs5Rx4jYzSxknbjOzlHHiNjNLGSdu\nM7OUceI2M0sZJ24zs5Rx4jYzS5mmhQ6gNn/teJhv6bSlDOLzQodgRWjMlBe0vH0smj4xcc4pb7/O\ncp9veXjEbWaWMkU74jYzy6vqqkJHkJgTt5kZQFVloSNIzInbzAyIqC50CIk5cZuZAVQ7cZuZpYtH\n3GZmKeOLk2ZmKeMRt5lZuoRnlZiZpYwvTpqZpYxLJWZmKeOLk2ZmKeMRt5lZyvjipJlZyvjipJlZ\nukS4xm1mli6ucZuZpYxLJWZmKeMRt5lZylQtKnQEiTlxm5mBSyVmZqmTolKJn/JuZgaZEXfSrR6S\n7pI0VdKEZew7XVJIar9E+y8kVUo6oL7+nbjNzKBREzcwBNhzyUZJawF7AJ8t0d4EuAIYnqRzJ24z\nMyCqFiXe6u0rYiQwcxm7rgPOBGKJ9pOBR4CpSWJ14jYzg0yNO+Emqb+ksTW2/vV1L6kXMDki3lqi\nvRPQG7glaai+OGlmBg2aVRIRg4HBSY+X1Bw4l0yZZEnXA2dFRLWkRP05cZuZQa5nlawLdAPeyibn\nzsAbkrYCugMPZNvbA3tLqoyI/6utMyduMzPI6TzuiHgbW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FD0ovZC5DDgCeW\n2L9I0kXAGDJJ9/0auw8FbpF0HlBO5lFtb9VxugvIlFZmAc8C3WrsGw88B7QHLo6IKcAUST8BXs6W\nY74GDgOm/siPa1YQXh3QzCxlXCoxM0sZJ24zs5Rx4jYzSxknbjOzlHHiNjNLGSduM7OUceI2M0sZ\nJ24zs5T5f+YlW4gngnCQAAAAAElFTkSuQmCC\n",
            "text/plain": [
              "<Figure size 432x288 with 2 Axes>"
            ]
          },
          "metadata": {
            "tags": []
          }
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "vxrK8jpFMDSZ",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 170
        },
        "outputId": "76e43212-8d86-47d2-edbb-66e90eb8dd59"
      },
      "source": [
        "print(classification_report(y_test, yfit_mlp))"
      ],
      "execution_count": 265,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "              precision    recall  f1-score   support\n",
            "\n",
            "        -1.0       0.54      0.52      0.53       237\n",
            "         1.0       0.57      0.58      0.58       256\n",
            "\n",
            "    accuracy                           0.55       493\n",
            "   macro avg       0.55      0.55      0.55       493\n",
            "weighted avg       0.55      0.55      0.55       493\n",
            "\n"
          ],
          "name": "stdout"
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "tAsKCIbQMFbo",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        ""
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "d8DgvG-HM3c5",
        "colab_type": "text"
      },
      "source": [
        "## Deep Neural Network"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "2flCevZAM7M4",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "e2934e5d-dac6-43b7-df02-2aac860b054a"
      },
      "source": [
        "# tensorflow 활용\n",
        "import tensorflow as tf\n",
        "tf.version"
      ],
      "execution_count": 266,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "<module 'tensorflow._api.v1.version' from '/usr/local/lib/python3.6/dist-packages/tensorflow/_api/v1/version/__init__.py'>"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 266
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "wCMeGY6KhJ0U",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 34
        },
        "outputId": "d1050c63-812d-4554-a1dc-c78059aa815e"
      },
      "source": [
        "tf.keras"
      ],
      "execution_count": 267,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "<module 'tensorflow.python.keras.api._v1.keras' from '/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/api/_v1/keras/__init__.py'>"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 267
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "TZ-X92JPNOC0",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        ""
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "ieife-tZS_Xa",
        "colab_type": "text"
      },
      "source": [
        "## accuracy score"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "4IquQi9fUrF8",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        "accuracy_score=[svc_score, pca_svm_score, gnb_score, tree_score, rf_score, knn_score, abc_score, gbc_score, xgb_score, mlp_score]"
      ],
      "execution_count": 0,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "DOmuaEqJTmFo",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 359
        },
        "outputId": "58e0fa28-4e21-4839-bb40-5fe5c45aa457"
      },
      "source": [
        "index = ['SVM', 'PCA-SVM', 'GNB', 'Decision Tree','Random Forest','KNN','Adaboost','Gradient Boost','XGBoost','MLP']\n",
        "table = pd.DataFrame(data=accuracy_score, index=index, columns=['accuracy score'])\n",
        "table"
      ],
      "execution_count": 269,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/html": [
              "<div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>accuracy score</th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>SVM</th>\n",
              "      <td>0.561866</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>PCA-SVM</th>\n",
              "      <td>0.574037</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>GNB</th>\n",
              "      <td>0.598377</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Decision Tree</th>\n",
              "      <td>0.598377</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Random Forest</th>\n",
              "      <td>0.608519</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>KNN</th>\n",
              "      <td>0.596349</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Adaboost</th>\n",
              "      <td>0.561866</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Gradient Boost</th>\n",
              "      <td>0.624746</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>XGBoost</th>\n",
              "      <td>0.638945</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>MLP</th>\n",
              "      <td>0.553753</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "</div>"
            ],
            "text/plain": [
              "                accuracy score\n",
              "SVM                   0.561866\n",
              "PCA-SVM               0.574037\n",
              "GNB                   0.598377\n",
              "Decision Tree         0.598377\n",
              "Random Forest         0.608519\n",
              "KNN                   0.596349\n",
              "Adaboost              0.561866\n",
              "Gradient Boost        0.624746\n",
              "XGBoost               0.638945\n",
              "MLP                   0.553753"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 269
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "cUvR1-Us-hg-",
        "colab_type": "code",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 359
        },
        "outputId": "08013a73-3a14-4beb-c700-1b62245ff2ff"
      },
      "source": [
        "table.sort_values(by='accuracy score',ascending=False)"
      ],
      "execution_count": 270,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/html": [
              "<div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>accuracy score</th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>XGBoost</th>\n",
              "      <td>0.638945</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Gradient Boost</th>\n",
              "      <td>0.624746</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Random Forest</th>\n",
              "      <td>0.608519</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>GNB</th>\n",
              "      <td>0.598377</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Decision Tree</th>\n",
              "      <td>0.598377</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>KNN</th>\n",
              "      <td>0.596349</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>PCA-SVM</th>\n",
              "      <td>0.574037</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>SVM</th>\n",
              "      <td>0.561866</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>Adaboost</th>\n",
              "      <td>0.561866</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>MLP</th>\n",
              "      <td>0.553753</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "</div>"
            ],
            "text/plain": [
              "                accuracy score\n",
              "XGBoost               0.638945\n",
              "Gradient Boost        0.624746\n",
              "Random Forest         0.608519\n",
              "GNB                   0.598377\n",
              "Decision Tree         0.598377\n",
              "KNN                   0.596349\n",
              "PCA-SVM               0.574037\n",
              "SVM                   0.561866\n",
              "Adaboost              0.561866\n",
              "MLP                   0.553753"
            ]
          },
          "metadata": {
            "tags": []
          },
          "execution_count": 270
        }
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "3_lbhD8C8TTH",
        "colab_type": "text"
      },
      "source": [
        " # 부록 ( classification report) \n",
        "### from https://muthu.co/understanding-the-classification-report-in-sklearn/"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "LMo6wU5m8TTI",
        "colab_type": "text"
      },
      "source": [
        "what is that?"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "b-Fa9hPz8TTJ",
        "colab_type": "text"
      },
      "source": [
        "### Precision: What percent of your predictions were correct?\n",
        "\n",
        "Precision is the ability of a classifier not to label an instance positive that is actually negative. For each class it is defined as the ratio of true positives to the sum of true and false positives.\n",
        "\n",
        "- TP – True Positives\n",
        "- FP – False Positives\n",
        "\n",
        "* Precision – Accuracy of positive predictions.\n",
        "* Precision = TP/(TP + FP)"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "72RBDx7F8TTK",
        "colab_type": "text"
      },
      "source": [
        "### Recall: What percent of the positive cases did you catch? \n",
        "\n",
        "Recall is the ability of a classifier to find all positive instances. For each class it is defined as the ratio of true positives to the sum of true positives and false negatives.\n",
        "\n",
        "- FN – False Negatives\n",
        "\n",
        "- Recall: Fraction of positives that were correctly identified.\n",
        "- Recall = TP/(TP+FN)"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "bmNVNKsX8TTL",
        "colab_type": "text"
      },
      "source": [
        "### F1 score: What percent of positive predictions were correct? \n",
        "\n",
        "The F1 score is a weighted harmonic mean of precision and recall such that the best score is 1.0 and the worst is 0.0. Generally speaking, F1 scores are lower than accuracy measures as they embed precision and recall into their computation. As a rule of thumb, the weighted average of F1 should be used to compare classifier models, not global accuracy.\n",
        "\n",
        "- F1 Score = 2$*$(Recall $*$ Precision) / (Recall + Precision)"
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "ytQdPAXv8TTP",
        "colab_type": "code",
        "colab": {}
      },
      "source": [
        ""
      ],
      "execution_count": 0,
      "outputs": []
    }
  ]
}